diff --git a/tests/test1.in b/tests/test1.in index 3b3ba25f3..9cf80a128 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 diff --git a/tests/test1.out b/tests/test1.out index 64b65faa5..e0e258d4c 100644 --- a/tests/test1.out +++ b/tests/test1.out @@ -5,3 +5,4 @@ Test 2 pass Test pass Test 3 pass +Test 4 pass