aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test3.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test3.in')
-rw-r--r--tests/test3.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test3.in b/tests/test3.in
index b162939d..51d545c6 100644
--- a/tests/test3.in
+++ b/tests/test3.in
@@ -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