diff --git a/tests/test3.in b/tests/test3.in index 0bcb419a8..9ddae60a1 100644 --- a/tests/test3.in +++ b/tests/test3.in @@ -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 diff --git a/tests/test3.out b/tests/test3.out index 8059d475f..3c30a3e1e 100644 --- a/tests/test3.out +++ b/tests/test3.out @@ -20,6 +20,9 @@ Test 16 pass __fish_test_env17=UNSHADOWED SHADOWED __fish_test_env17=UNSHADOWED +wuwuwu +boo +wuwuwu Testing Universal Startup 1 1