mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
Test copying local-exported vars
This commit is contained in:
committed by
Kurtis Rader
parent
9ca6cb9fc8
commit
f2a6ae20e5
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user