From 7bb844a77835b446365aa56729483927acc6c561 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 4 Nov 2012 17:11:02 -0800 Subject: Fix bug where 'else if' does not support functions and redirections https://github.com/fish-shell/fish-shell/issues/359 --- tests/test7.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test7.in') 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 -- cgit v1.2.3