mirror of git://git.code.sf.net/p/zsh/code
15869
This commit is contained in:
parent
ad65621e60
commit
ae9c181d6b
|
@ -1,9 +1,6 @@
|
|||
2001-09-25 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 15868: Src/text.c: job text building code couldn't handle
|
||||
empty sublists (as in `coproc || test')
|
||||
|
||||
* 15868: Src/text.c: job text building code couldn't handle
|
||||
* 15868, 15869: Src/text.c: job text building code couldn't handle
|
||||
empty sublists (as in `coproc || test')
|
||||
|
||||
2001-09-25 Clint Adams <clint@zsh.org>
|
||||
|
|
|
@ -274,8 +274,9 @@ gettext2(Estate state)
|
|||
break;
|
||||
case WC_SUBLIST:
|
||||
if (!s) {
|
||||
if (wc_code(*state->pc) != WC_PIPE)
|
||||
stack = 1;
|
||||
if (!(WC_SUBLIST_FLAGS(code) & WC_SUBLIST_SIMPLE) &&
|
||||
wc_code(*state->pc) != WC_PIPE)
|
||||
stack = -1;
|
||||
if (WC_SUBLIST_FLAGS(code) & WC_SUBLIST_NOT)
|
||||
taddstr(stack ? "!" : "! ");
|
||||
if (WC_SUBLIST_FLAGS(code) & WC_SUBLIST_COPROC)
|
||||
|
@ -293,7 +294,7 @@ gettext2(Estate state)
|
|||
taddstr("coproc ");
|
||||
}
|
||||
}
|
||||
if (!stack && (WC_SUBLIST_FLAGS(s->code) & WC_SUBLIST_SIMPLE))
|
||||
if (stack < 1 && (WC_SUBLIST_FLAGS(s->code) & WC_SUBLIST_SIMPLE))
|
||||
state->pc++;
|
||||
break;
|
||||
case WC_PIPE:
|
||||
|
|
Loading…
Reference in New Issue