mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 17:31:02 +01:00
38734: fix final case clauses terminating with ;&
This commit is contained in:
parent
d309d9addc
commit
016929e043
3 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2016-06-21 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 38734: Src/loop.c, Test/A01grammar.ztst: fix final case
|
||||
clauses terminating with ;&.
|
||||
|
||||
* 38692: Doc/Zsh/restricted.yo, Src/params.c: IFS can't be
|
||||
changed in restricted mode.
|
||||
|
||||
|
|
|
|||
|
|
@ -660,7 +660,7 @@ execcase(Estate state, int do_exec)
|
|||
execlist(state, 1, ((WC_CASE_TYPE(code) == WC_CASE_OR) &&
|
||||
do_exec));
|
||||
while (!retflag && wc_code(code) == WC_CASE &&
|
||||
WC_CASE_TYPE(code) == WC_CASE_AND) {
|
||||
WC_CASE_TYPE(code) == WC_CASE_AND && state->pc < end) {
|
||||
state->pc = next;
|
||||
code = *state->pc++;
|
||||
next = state->pc + WC_CASE_SKIP(code);
|
||||
|
|
|
|||
|
|
@ -283,6 +283,14 @@
|
|||
>2
|
||||
>3
|
||||
|
||||
case whatever in
|
||||
(*) print yeah, right ;&
|
||||
esac
|
||||
print but well
|
||||
0:'case', redundant final ";&"
|
||||
>yeah, right
|
||||
>but well
|
||||
|
||||
## Select now reads from stdin if the shell is not interactive.
|
||||
## Its own output goes to stderr.
|
||||
(COLUMNS=80 LINES=3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue