mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 06:49:49 +02:00
Fix infinite loop on `case' with xtrace.
This commit is contained in:
parent
c1441714b5
commit
14e13fb407
@ -1,3 +1,8 @@
|
||||
2001-10-23 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 16124: Src/loop.c: Fix infinite loop on `case' with xtrace
|
||||
(bug introduced by 16041).
|
||||
|
||||
2001-10-23 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 16122: Src/builtin.c, Test/B03print.ztst: only count value
|
||||
|
@ -553,9 +553,8 @@ execcase(Estate state, int do_exec)
|
||||
printprompt4();
|
||||
fprintf(xtrerr, "case %s (%s)\n", word, pat2);
|
||||
fflush(xtrerr);
|
||||
state->pc++;
|
||||
} else
|
||||
state->pc += 2;
|
||||
}
|
||||
state->pc += 2;
|
||||
|
||||
if (*spprog != dummy_patprog1 && *spprog != dummy_patprog2)
|
||||
pprog = *spprog;
|
||||
|
Loading…
Reference in New Issue
Block a user