aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-10-17 01:07:34 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-10-17 01:07:34 -0700
commit91e1d598695d9b4ed6e1b5b32e035155e611bc89 (patch)
tree789be9e3447fb4e40866b834b0fbfdcb12cd8f32 /tests
parent5fb97f05a3bbe4ee0dee85d4786769622d2300c4 (diff)
Fix for issue where else if would fail to pass arguments to commands. Also implements short-circuiting for and/or so that non-existent commands don't produce error messages.
Diffstat (limited to 'tests')
-rw-r--r--tests/test7.in9
-rw-r--r--tests/test7.out1
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/test7.in b/tests/test7.in
index 8e80da59..910f8080 100644
--- a/tests/test7.in
+++ b/tests/test7.in
@@ -93,3 +93,12 @@ else
echo delta4.1
echo delta4.2
end
+
+if test ! -n "abc"
+else if test -n "def"
+ echo "epsilon5.2"
+else if not_a_valid_command but it should be OK because a previous branch was taken
+ echo "epsilon 5.3"
+else if test ! -n "abc"
+ echo "epsilon 5.4"
+end
diff --git a/tests/test7.out b/tests/test7.out
index 454240b4..903f1973 100644
--- a/tests/test7.out
+++ b/tests/test7.out
@@ -23,3 +23,4 @@ yep4.1
yep4.2
delta4.1
delta4.2
+epsilon5.2