aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test3.in
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-02-03 16:13:02 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-02-03 16:13:02 -0800
commitd7ba6e4a1daee77be453efdcf277edc446fdfd81 (patch)
treeb718f290a01c17aece40e7383ea70bf693087f62 /tests/test3.in
parent981a71555fb0080340caf038381e28bb07c34f32 (diff)
Properly fire events for universal variable changes
Fixes #1929
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