From fefd17fe5e8ae629dff0ccb0565d0dcfb3a5efb0 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Tue, 23 Nov 2010 23:05:21 +0800 Subject: add test case for 6b243fbc --- tests/test1.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests/test1.in') diff --git a/tests/test1.in b/tests/test1.in index 3b3ba25f..9cf80a12 100644 --- a/tests/test1.in +++ b/tests/test1.in @@ -1,5 +1,5 @@ # -#Test aliases loops and conditionals +#Test aliases, loops, conditionals and some basic elements # for i in 1 2 #Comment on same line as command @@ -51,3 +51,14 @@ for i in Test for continue break and switch builtins problems; end end +set -l sta +if eval true + if eval false + set sta fail + else + set sta pass + end +else + set sta fail +end +echo Test 4 $sta -- cgit v1.2.3