mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-08 16:21:16 -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user