mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-07 21:31:17 +02:00
39844: fix "while" condition as per 39839 (commit 2c56c7e5
)
This commit is contained in:
parent
2c56c7e5e8
commit
ff36590910
2 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
|||
2016-11-05 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 39844: Src/loop.c: fix "while" condition as per 39839
|
||||
|
||||
* 39839: Src/loop.c: fix "return" from "if" condition
|
||||
|
||||
* 39838: Src/builtin.c: another missing unqueue_signals()
|
||||
|
|
|
@ -439,13 +439,12 @@ execwhile(Estate state, UNUSED(int do_exec))
|
|||
if (!((lastval == 0) ^ isuntil)) {
|
||||
if (breaks)
|
||||
breaks--;
|
||||
lastval = oldval;
|
||||
if (!retflag)
|
||||
lastval = oldval;
|
||||
break;
|
||||
}
|
||||
if (retflag) {
|
||||
lastval = oldval;
|
||||
if (retflag)
|
||||
break;
|
||||
}
|
||||
|
||||
/* In case the loop body is also a functional no-op,
|
||||
* make sure signal handlers recognize ^C as above. */
|
||||
|
|
Loading…
Reference in a new issue