mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 08:32:45 +08:00
Add test for issue 1526
This commit is contained in:
parent
3acd0dfe48
commit
b19f45e15d
|
@ -217,4 +217,20 @@ end
|
||||||
|
|
||||||
# clear foo for other shells
|
# clear foo for other shells
|
||||||
set -eU foo
|
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
|
true
|
||||||
|
|
|
@ -14,3 +14,10 @@ Test 13 pass
|
||||||
Test 14 pass
|
Test 14 pass
|
||||||
Test 15 pass
|
Test 15 pass
|
||||||
Test 16 pass
|
Test 16 pass
|
||||||
|
Testing Universal Startup
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
Missing:
|
||||||
|
Missing:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user