From 50e34d4acb578c985f5c9ac453af97aec3b7a867 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 19 Aug 2001 04:20:19 +0000 Subject: Fix exit status of zsh -fc '! command' --- Src/exec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src') 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; -- cgit 1.4.1