diff options
author | Peter Stephenson <pws@zsh.org> | 2016-09-13 09:37:49 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2016-09-13 09:37:49 +0100 |
commit | 23c1c774b95861209fe97d1436b6563d5946f939 (patch) | |
tree | 4ebcbbe36615643ef65b97c75095d3b5e5edcb61 /Src/exec.c | |
parent | 98581594b50d7b0c9fc3cb885028522b14a88304 (diff) | |
download | zsh-23c1c774b95861209fe97d1436b6563d5946f939.tar.gz zsh-23c1c774b95861209fe97d1436b6563d5946f939.tar.xz zsh-23c1c774b95861209fe97d1436b6563d5946f939.zip |
39305: Fix error handling after parse for here document.
Keep the error status the same as before, but also retain the interrupt status if that was non-zero.
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index 2e251b939..cfd633add 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -4034,7 +4034,7 @@ gethere(char **strp, int typ) parsestr(&buf); - if (!errflag) { + if (!(errflag & ERRFLAG_ERROR)) { /* Retain any user interrupt error */ errflag = ef | (errflag & ERRFLAG_INT); } |