From 588bb77cb674a192eb176c01c8d17db1e9e4aba2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 3 May 2019 20:34:53 +0100 Subject: 44271: Fix breaks propagated from until or return. If the until or return test caused continuation but there was a pending return, breaks didn't get cancelled causing enclosing scope to skip commands. --- Test/A01grammar.ztst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Test/A01grammar.ztst') diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst index 339ce7494..1ed3cb6b7 100644 --- a/Test/A01grammar.ztst +++ b/Test/A01grammar.ztst @@ -640,6 +640,16 @@ >1 >0 + echo 'echo dot + until return 42; do + : + done' >until_dot + . ./until_dot + echo After dot +0:return in positive until test in dot file does not cause excess breaks +>dot +>After dot + echo 'echo $?' >dot_status false . ./dot_status -- cgit 1.4.1