aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test7.in
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/test7.in
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/test7.in')
-rw-r--r--tests/test7.in9
1 files changed, 9 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