about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-09-25 12:11:25 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-09-25 12:11:25 +0000
commit5322a5d68f01949c068a6632b29d3b57b093edd8 (patch)
tree726a663722cdd8f942bb9fe16a7da38b85dc0e07 /Src
parent59fca941588c504cffe789d371448164f71d16a7 (diff)
downloadzsh-5322a5d68f01949c068a6632b29d3b57b093edd8.tar.gz
zsh-5322a5d68f01949c068a6632b29d3b57b093edd8.tar.xz
zsh-5322a5d68f01949c068a6632b29d3b57b093edd8.zip
(15868)
Diffstat (limited to 'Src')
-rw-r--r--Src/text.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/text.c b/Src/text.c
index 9b18a3510..5920c00f6 100644
--- a/Src/text.c
+++ b/Src/text.c
@@ -274,10 +274,12 @@ 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_NOT)
-		    taddstr("! ");
+		    taddstr(stack ? "!" : "! ");
 		if (WC_SUBLIST_FLAGS(code) & WC_SUBLIST_COPROC)
-		    taddstr("coproc ");
+		    taddstr(stack ? "coproc" : "coproc ");
 		s = tpush(code, (WC_SUBLIST_TYPE(code) == WC_SUBLIST_END));
 	    } else {
 		if (!(stack = (WC_SUBLIST_TYPE(code) == WC_SUBLIST_END))) {