mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Update testsuite to reflect new variable scoping rules
darcs-hash:20050927083554-ac50b-80f5fcb0022416a80eb8d3aa673282a2c67d4dd4.gz
This commit is contained in:
parent
d8971f1a17
commit
e855f2dfc9
1 changed files with 4 additions and 3 deletions
|
@ -22,8 +22,9 @@ end
|
|||
|
||||
# Test if local variables go out of scope
|
||||
|
||||
set -e t3
|
||||
if true
|
||||
set t3 bar
|
||||
set -l t3 bar
|
||||
end
|
||||
|
||||
if test $t3
|
||||
|
@ -78,7 +79,6 @@ end
|
|||
set res fail
|
||||
|
||||
for i in 1 2
|
||||
set t7
|
||||
if test $i = 1
|
||||
set t7 b
|
||||
else
|
||||
|
@ -92,8 +92,9 @@ echo Test 7 $res
|
|||
|
||||
# Test if variables are properly exported
|
||||
|
||||
set -e t8
|
||||
if true
|
||||
set -x t8 foo
|
||||
set -lx t8 foo
|
||||
if test (fish -c "echo $t8") = foo
|
||||
echo Test 8 pass
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue