diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2019-05-03 20:34:53 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2019-05-03 20:34:53 +0100 |
commit | 588bb77cb674a192eb176c01c8d17db1e9e4aba2 (patch) | |
tree | 95a4001a8c63fca4bbe3bf276e27603ae1b3648b /Test | |
parent | 8ce9e20c4963b288cee9a76523c41579880aeeb1 (diff) | |
download | zsh-588bb77cb674a192eb176c01c8d17db1e9e4aba2.tar.gz zsh-588bb77cb674a192eb176c01c8d17db1e9e4aba2.tar.xz zsh-588bb77cb674a192eb176c01c8d17db1e9e4aba2.zip |
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.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A01grammar.ztst | 10 |
1 files changed, 10 insertions, 0 deletions
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 |