about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-04-17 22:43:38 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-04-17 22:43:38 +0100
commit2e48eceb1ad2b7b33170d7104e94351cc7231e51 (patch)
treec7a739afd7d597c1c919e1b1d9d392a4499829b5 /Src
parent4553cbad19c088387cac5d82f655852c330ab981 (diff)
downloadzsh-2e48eceb1ad2b7b33170d7104e94351cc7231e51.tar.gz
zsh-2e48eceb1ad2b7b33170d7104e94351cc7231e51.tar.xz
zsh-2e48eceb1ad2b7b33170d7104e94351cc7231e51.zip
34921: handle error in recursive par_event().
Here documents in an interrupted list caused bad juju.
Diffstat (limited to 'Src')
-rw-r--r--Src/parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/parse.c b/Src/parse.c
index 91a81e1ff..985eb8e71 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -605,6 +605,7 @@ par_event(int endtok)
 	if (!par_event(endtok)) {
 	    ecused = oec;
 	    ecbuf[p] |= wc_bdata(Z_END);
+	    return errflag ? 0 : 1;
 	}
     }
     return 1;