aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test3.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test3.in')
-rw-r--r--tests/test3.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test3.in b/tests/test3.in
index 970741d1..fe20928c 100644
--- a/tests/test3.in
+++ b/tests/test3.in
@@ -227,6 +227,14 @@ else
echo Test 16 fail
end
+# Test that shadowing with a non-exported variable works
+set -gx __fish_test_env17 UNSHADOWED
+env | sgrep __fish_test_env17
+function __fish_test_shadow
+ set -l __fish_test_env17
+ env | sgrep __fish_test_env17 ; or echo SHADOWED
+end
+__fish_test_shadow
# clear for other shells
set -eU __fish_test_universal_variables_variable_foo