about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/exec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/exec.c b/Src/exec.c
index c9c895940..1e2cb5e5a 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2517,8 +2517,7 @@ 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[7]) == WC_END) {
+	wc_code(pc[6]) == WC_SIMPLE && !WC_SIMPLE_ARGC(pc[6])) {
 	/* $(< word) */
 	int stream;
 	char *s = dupstring(ecrawstr(prog, pc + 5));