diff options
author | axel <axel@liljencrantz.se> | 2005-09-27 18:35:54 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-09-27 18:35:54 +1000 |
commit | e855f2dfc90b7dbd7885678797a393c812103c41 (patch) | |
tree | 0d902fec15c86f1d119bf04e26dcdd605c6f4362 /tests/test3.in | |
parent | d8971f1a17b39f67dc08c1d853bae3958adb331d (diff) |
Update testsuite to reflect new variable scoping rules
darcs-hash:20050927083554-ac50b-80f5fcb0022416a80eb8d3aa673282a2c67d4dd4.gz
Diffstat (limited to 'tests/test3.in')
-rw-r--r-- | tests/test3.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test3.in b/tests/test3.in index 1d52da79..8c197bca 100644 --- a/tests/test3.in +++ b/tests/test3.in @@ -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 |