1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-20 21:50:42 +02:00

Fix infinite loop on `case' with xtrace.

This commit is contained in:
Bart Schaefer 2001-10-23 16:17:03 +00:00
parent c1441714b5
commit 14e13fb407
2 changed files with 7 additions and 3 deletions

View File

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

View File

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