Test copying local-exported vars

This commit is contained in:
Fabian Homborg 2017-06-21 16:56:46 +02:00 committed by Kurtis Rader
parent 9ca6cb9fc8
commit f2a6ae20e5
2 changed files with 13 additions and 0 deletions

View file

@ -247,6 +247,16 @@ __fish_test_shadow
# Test that the variable is still exported (#2611)
env | string match '__fish_test_env17=*'
# Test that local exported variables are copied to functions (#1091)
function __fish_test_local_export
echo $var
set var boo
echo $var
end
set -lx var wuwuwu
__fish_test_local_export
echo $var
# clear for other shells
set -eU __fish_test_universal_variables_variable_foo

View file

@ -20,6 +20,9 @@ Test 16 pass
__fish_test_env17=UNSHADOWED
SHADOWED
__fish_test_env17=UNSHADOWED
wuwuwu
boo
wuwuwu
Testing Universal Startup
1
1