aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test7.in
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-04 17:11:02 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-04 17:11:02 -0800
commit7bb844a77835b446365aa56729483927acc6c561 (patch)
tree437a4eccf47112b0e1c83799f933a5e1a3f04247 /tests/test7.in
parent8c24d49c732624e6fefbab637940afa1a789cb1c (diff)
Fix bug where 'else if' does not support functions and redirections
Diffstat (limited to 'tests/test7.in')
-rw-r--r--tests/test7.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test7.in b/tests/test7.in
index 910f8080..d642e71e 100644
--- a/tests/test7.in
+++ b/tests/test7.in
@@ -102,3 +102,11 @@ else if not_a_valid_command but it should be OK because a previous branch was ta
else if test ! -n "abc"
echo "epsilon 5.4"
end
+
+# Ensure builtins work
+# https://github.com/fish-shell/fish-shell/issues/359
+if not echo skip1 > /dev/null
+ echo "zeta 6.1"
+else if echo skip2 > /dev/null
+ echo "zeta 6.2"
+end