From e855f2dfc90b7dbd7885678797a393c812103c41 Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 27 Sep 2005 18:35:54 +1000 Subject: Update testsuite to reflect new variable scoping rules darcs-hash:20050927083554-ac50b-80f5fcb0022416a80eb8d3aa673282a2c67d4dd4.gz --- tests/test3.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/test3.in') 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 -- cgit v1.2.3