diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2001-08-19 04:20:19 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-08-19 04:20:19 +0000 |
commit | 50e34d4acb578c985f5c9ac453af97aec3b7a867 (patch) | |
tree | e123651b33d9ac79d7541176d4049e38f11eb0a0 /Src/exec.c | |
parent | d7f25fbbfd9cc194acedbb4cf6c43b2a6bdf9bc2 (diff) | |
download | zsh-50e34d4acb578c985f5c9ac453af97aec3b7a867.tar.gz zsh-50e34d4acb578c985f5c9ac453af97aec3b7a867.tar.xz zsh-50e34d4acb578c985f5c9ac453af97aec3b7a867.zip |
Fix exit status of zsh -fc '! command'
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c index 071dee7cc..fda120d32 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -943,6 +943,8 @@ execpline(Estate state, wordcode slcode, int how, int last1) if (wc_code(code) != WC_PIPE) return lastval = (slflags & WC_SUBLIST_NOT) != 0; + else if (slflags & WC_SUBLIST_NOT) + last1 = 0; pj = thisjob; ipipe[0] = ipipe[1] = opipe[0] = opipe[1] = 0; |