diff options
| author | Peter Stephenson <p.stephenson@samsung.com> | 2018-04-23 13:45:08 +0100 |
|---|---|---|
| committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-04-23 13:45:08 +0100 |
| commit | 11f18457d229b84c3532c15c9080235e85d26866 (patch) | |
| tree | 6759e023a8460851e6fc600c1abefff1f7f9e5c2 | |
| parent | 42684 (with extra comments): Fork early if in bg. (diff) | |
| download | zsh-11f18457d229b84c3532c15c9080235e85d26866.tar zsh-11f18457d229b84c3532c15c9080235e85d26866.tar.gz zsh-11f18457d229b84c3532c15c9080235e85d26866.tar.bz2 zsh-11f18457d229b84c3532c15c9080235e85d26866.tar.lz zsh-11f18457d229b84c3532c15c9080235e85d26866.tar.xz zsh-11f18457d229b84c3532c15c9080235e85d26866.tar.zst zsh-11f18457d229b84c3532c15c9080235e85d26866.zip | |
Allow short loops with "while"
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | Src/parse.c | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2018-04-23 Peter Stephenson <p.stephenson@samsung.com> + + * 23362: Src/parse.c: Allow short loops with "while". + 2018-04-20 Peter Stephenson <p.stephenson@samsung.com> * 42684 (with extra comments): Src/exec.c: Fork earlier diff --git a/Src/parse.c b/Src/parse.c index 47e5a246a..83383f10c 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -1510,8 +1510,10 @@ par_while(int *cmplx) if (tok != ZEND) YYERRORV(oecused); zshlex(); - } else + } else if (unset(SHORTLOOPS)) { YYERRORV(oecused); + } else + par_save_list1(cmplx); ecbuf[p] = WCB_WHILE(type, ecused - 1 - p); } |
