mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
@@ -174,6 +174,15 @@ else
|
||||
end
|
||||
|
||||
set -eU __fish_test_universal_variables_variable_foo
|
||||
function watch_foo --on-variable __fish_test_universal_variables_variable_foo
|
||||
echo Foo change detected
|
||||
end
|
||||
|
||||
set -U __fish_test_universal_variables_variable_foo 1234
|
||||
set -eU __fish_test_universal_variables_variable_foo
|
||||
|
||||
functions -e watch_foo
|
||||
|
||||
|
||||
# test erasing variables without a specified scope
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ Test 12 pass
|
||||
Test 13 pass
|
||||
Test 14 pass
|
||||
Test 15 pass
|
||||
Foo change detected
|
||||
Foo change detected
|
||||
Test 16 pass
|
||||
Testing Universal Startup
|
||||
1
|
||||
|
||||
Reference in New Issue
Block a user