1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-16 12:21:18 +02:00

Allow short loops with "while"

This commit is contained in:
Peter Stephenson 2018-04-23 13:45:08 +01:00
parent 9e2afb9298
commit 11f18457d2
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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);
}