From 29ddb68da428804148a0c6f44229cf1848bebf8c Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 12 Feb 2014 01:39:06 -0800 Subject: Tests and fix to allow return to work correctly within if statements. Closes #1297. --- tests/test1.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/test1.in') diff --git a/tests/test1.in b/tests/test1.in index 7f60a4da..529baea1 100644 --- a/tests/test1.in +++ b/tests/test1.in @@ -121,3 +121,12 @@ echo -e Catch your breath echo -e 'abc\x21def' echo -e 'abc\x211def' + +function always_fails + if true + return 1 + end +end + +always_fails ; echo $status + -- cgit v1.2.3