From 98297e5234360c3e5e6a70f26b66904a6d94a39f Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 11 Jul 2014 11:28:10 -0700 Subject: Teach while loops to not hang forever with no-execute Fixes #1543 --- tests/test1.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test1.in') diff --git a/tests/test1.in b/tests/test1.in index 4de8d6b1..424b931a 100644 --- a/tests/test1.in +++ b/tests/test1.in @@ -123,6 +123,10 @@ echo -e Catch your breath echo -e 'abc\x21def' echo -e 'abc\x211def' +# Make sure while loops don't run forever with no-exec (#1543) +echo "Checking for infinite loops in no-execute" +echo "while true; end" | ../fish --no-execute + function always_fails if true return 1 -- cgit v1.2.3