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 | users/28338: command substitution with alias edge case. (diff) | |
| download | zsh-d873ed6026d7b0c48d6e65ec06df491d015a4d59.tar zsh-d873ed6026d7b0c48d6e65ec06df491d015a4d59.tar.gz zsh-d873ed6026d7b0c48d6e65ec06df491d015a4d59.tar.bz2 zsh-d873ed6026d7b0c48d6e65ec06df491d015a4d59.tar.lz zsh-d873ed6026d7b0c48d6e65ec06df491d015a4d59.tar.xz zsh-d873ed6026d7b0c48d6e65ec06df491d015a4d59.tar.zst 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; } |
