mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
zsh-workers/9863
This commit is contained in:
parent
3aeeda594e
commit
01ffe47e01
2 changed files with 6 additions and 4 deletions
|
@ -1154,13 +1154,13 @@ par_if(int *complex)
|
|||
yylex();
|
||||
if (tok == INBRACE && usebrace) {
|
||||
yylex();
|
||||
par_list(complex);
|
||||
par_save_list(complex);
|
||||
if (tok != OUTBRACE) {
|
||||
cmdpop();
|
||||
YYERRORV(oecused);
|
||||
}
|
||||
} else {
|
||||
par_list(complex);
|
||||
par_save_list(complex);
|
||||
if (tok != FI) {
|
||||
cmdpop();
|
||||
YYERRORV(oecused);
|
||||
|
@ -1507,7 +1507,7 @@ par_simple(int *complex, int nr)
|
|||
int c = 0;
|
||||
|
||||
yylex();
|
||||
par_list(&c);
|
||||
par_save_list(&c);
|
||||
if (tok != OUTBRACE) {
|
||||
cmdpop();
|
||||
lineno += oldlineno;
|
||||
|
|
|
@ -269,7 +269,7 @@ gettext2(Estate state)
|
|||
taddstr("! ");
|
||||
if (WC_SUBLIST_FLAGS(code) & WC_SUBLIST_COPROC)
|
||||
taddstr("coproc ");
|
||||
tpush(code, (WC_SUBLIST_TYPE(code) == WC_SUBLIST_END));
|
||||
s = tpush(code, (WC_SUBLIST_TYPE(code) == WC_SUBLIST_END));
|
||||
} else {
|
||||
if (!(stack = (WC_SUBLIST_TYPE(code) == WC_SUBLIST_END))) {
|
||||
taddstr((WC_SUBLIST_TYPE(code) == WC_SUBLIST_OR) ?
|
||||
|
@ -282,6 +282,8 @@ gettext2(Estate state)
|
|||
taddstr("coproc ");
|
||||
}
|
||||
}
|
||||
if (!stack && (WC_SUBLIST_FLAGS(s->code) & WC_SUBLIST_SIMPLE))
|
||||
state->pc++;
|
||||
break;
|
||||
case WC_PIPE:
|
||||
if (!s) {
|
||||
|
|
Loading…
Reference in a new issue