aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test3.out
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-06-12 16:05:59 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-06-12 16:11:45 -0700
commitea407476d0e8bfe8b179dbb43bdecb6bdbd2acbb (patch)
treeab16df014471c46db19386752699fb08a3e98b30 /tests/test3.out
parentb6b6de330463db1b79c9c7a67efd6d671b9b9de3 (diff)
Correctly un-export an env var when it is shadowed
Prior to this fix, if you exported a variable in one scope and then unexported it in the next, it would remain exported. Example: set -gx VAR 1 function foo; set -l VAR; env; end foo Here 'VAR' would be exported to 'env' because we failed to notice that the env var is shadowed by an unexported variable. This occurred at env var computation time, not in env_set! Fixes #2132
Diffstat (limited to 'tests/test3.out')
-rw-r--r--tests/test3.out2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test3.out b/tests/test3.out
index a6d5d3ac..806ea708 100644
--- a/tests/test3.out
+++ b/tests/test3.out
@@ -16,6 +16,8 @@ Test 15 pass
Foo change detected
Foo change detected
Test 16 pass
+__fish_test_env17=UNSHADOWED
+SHADOWED
Testing Universal Startup
1
1