about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-23 22:34:02 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-23 22:34:02 +0000
commit08f335e4851dd626c0a9c4f5e3b0fe661909e6f4 (patch)
treebc507250d496944fee22fd1bd7c51560e8216411 /Src/exec.c
parent5b0c4cae62f351a24260cb35a3a51c94ff556aa1 (diff)
downloadzsh-08f335e4851dd626c0a9c4f5e3b0fe661909e6f4.tar.gz
zsh-08f335e4851dd626c0a9c4f5e3b0fe661909e6f4.tar.xz
zsh-08f335e4851dd626c0a9c4f5e3b0fe661909e6f4.zip
zsh-3.1.6-dev-16 zsh-3.1.6-dev-16
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 6c7892318..ac0288be0 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2519,7 +2519,8 @@ getoutput(char *cmd, int qt)
 	wc_code(pc[2]) == WC_PIPE && WC_PIPE_TYPE(pc[2]) == WC_PIPE_END &&
 	wc_code(pc[3]) == WC_REDIR && WC_REDIR_TYPE(pc[3]) == READ && 
 	!pc[4] &&
-	wc_code(pc[6]) == WC_SIMPLE && !WC_SIMPLE_ARGC(pc[6])) {
+	wc_code(pc[6]) == WC_SIMPLE && !WC_SIMPLE_ARGC(pc[6]) &&
+	wc_code(pc[7]) == WC_END) {
 	/* $(< word) */
 	int stream;
 	char *s = dupstring(ecrawstr(prog, pc + 5));