Test that exported vars remain exported

I.e. the fix for #2611.
This commit is contained in:
Fabian Homborg 2017-06-21 16:53:50 +02:00 committed by Kurtis Rader
parent 473dc16b2b
commit 9ca6cb9fc8
2 changed files with 3 additions and 0 deletions

View File

@ -244,6 +244,8 @@ function __fish_test_shadow
env | string match -q '__fish_test_env17=*' ; or echo SHADOWED
end
__fish_test_shadow
# Test that the variable is still exported (#2611)
env | string match '__fish_test_env17=*'
# clear for other shells
set -eU __fish_test_universal_variables_variable_foo

View File

@ -19,6 +19,7 @@ count:5 content:[functionblock function global universal blocklocal]
Test 16 pass
__fish_test_env17=UNSHADOWED
SHADOWED
__fish_test_env17=UNSHADOWED
Testing Universal Startup
1
1