diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-04-17 22:43:38 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-04-17 22:43:38 +0100 |
commit | 2e48eceb1ad2b7b33170d7104e94351cc7231e51 (patch) | |
tree | c7a739afd7d597c1c919e1b1d9d392a4499829b5 /Src | |
parent | 4553cbad19c088387cac5d82f655852c330ab981 (diff) | |
download | zsh-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.c | 1 |
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; |