diff options
author | Grissiom <chaos.proton@gmail.com> | 2010-11-23 23:05:21 +0800 |
---|---|---|
committer | Grissiom <chaos.proton@gmail.com> | 2010-11-23 23:05:21 +0800 |
commit | fefd17fe5e8ae629dff0ccb0565d0dcfb3a5efb0 (patch) | |
tree | 4d867d5158bb09b200efcea320b86f36b6a3b285 /tests/test1.in | |
parent | 6b243fbcd35f57633066d6d948845d8ad7818239 (diff) |
add test case for 6b243fbc
Diffstat (limited to 'tests/test1.in')
-rw-r--r-- | tests/test1.in | 13 |
1 files changed, 12 insertions, 1 deletions
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 |