aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tests/test3.in16
-rw-r--r--tests/test3.out7
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/test3.in b/tests/test3.in
index 92cc1c86..f370c97b 100644
--- a/tests/test3.in
+++ b/tests/test3.in
@@ -217,4 +217,20 @@ end
# clear foo for other shells
set -eU foo
+
+# Test behavior of universals on startup (#1526)
+echo Testing Universal Startup
+set -U testu 0
+../fish -c 'set -U testu 1'
+echo $testu
+../fish -c 'echo $testu'
+
+../fish -c 'set -U testu 2'
+echo $testu
+../fish -c 'echo $testu'
+
+../fish -c 'set -e testu';
+echo Missing: $testu
+../fish -c 'echo Missing: $testu'
+
true
diff --git a/tests/test3.out b/tests/test3.out
index 5b4e3d11..d6cbdb9c 100644
--- a/tests/test3.out
+++ b/tests/test3.out
@@ -14,3 +14,10 @@ Test 13 pass
Test 14 pass
Test 15 pass
Test 16 pass
+Testing Universal Startup
+1
+1
+2
+2
+Missing:
+Missing: