diff options
author | Bart Schaefer <schaefer@zsh.org> | 2022-11-08 20:36:49 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2022-11-08 20:36:49 -0800 |
commit | d873ed6026d7b0c48d6e65ec06df491d015a4d59 (patch) | |
tree | 307d5a07b8fd0b269c03310ce24f50e13e8a2f36 /Src/exec.c | |
parent | 298919f43a565cc2e130c8cb3f67773f7a54fca1 (diff) | |
download | zsh-d873ed6026d7b0c48d6e65ec06df491d015a4d59.tar.gz zsh-d873ed6026d7b0c48d6e65ec06df491d015a4d59.tar.xz zsh-d873ed6026d7b0c48d6e65ec06df491d015a4d59.zip |
50897: nonzero status of complex commands should trigger ERR_EXIT
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 c8bcf4ee5..2422dae91 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -451,7 +451,7 @@ execcursh(Estate state, int do_exec) cmdpop(); state->pc = end; - this_noerrexit = 1; + this_noerrexit = (WC_SUBLIST_TYPE(*end) != WC_SUBLIST_END); return lastval; } |