Add test for issue 1526

This commit is contained in:
ridiculousfish 2014-07-06 17:57:23 -07:00
parent 3acd0dfe48
commit b19f45e15d
2 changed files with 23 additions and 0 deletions

View file

@ -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

View file

@ -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: