aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test3.in
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-04-29 17:28:49 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-04-29 17:28:49 -0700
commitf30872a7b55da98c5b027edc4195441743f3bfab (patch)
treea47c0e32877b7b3a48d70e613476fb588624e9f3 /tests/test3.in
parent9c3a9a1e7333feacff0a7d5d08e667b346c97899 (diff)
Recalculate exported variables when universal variable is erased
Fixes #2046
Diffstat (limited to 'tests/test3.in')
-rw-r--r--tests/test3.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test3.in b/tests/test3.in
index 51d545c6..970741d1 100644
--- a/tests/test3.in
+++ b/tests/test3.in
@@ -149,6 +149,10 @@ else
end
set -Ue __fish_test_universal_variables_variable_foo
+
+# Should no longer be in environment (#2046)
+env | sgrep __fish_test_universal_variables_variable_foo
+
set -Ux __fish_test_universal_variables_variable_foo bar
set -U __fish_test_universal_variables_variable_foo baz
if test (/bin/sh -c 'echo $__fish_test_universal_variables_variable_foo') = baz -a (../fish -c 'echo $__fish_test_universal_variables_variable_foo') = baz