diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-07-06 17:57:23 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-07-06 18:12:18 -0700 |
commit | b19f45e15dd210216c8d34b5517df8ca410dd87a (patch) | |
tree | f514ef4976e1ff6f5575640045abf048c7e459ea /tests | |
parent | 3acd0dfe486c77fd033f9152334b8491a9f6989a (diff) |
Add test for issue 1526
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test3.in | 16 | ||||
-rw-r--r-- | tests/test3.out | 7 |
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: |