mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Add test for issue 1526
This commit is contained in:
parent
3acd0dfe48
commit
b19f45e15d
2 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue