Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: exit status 0 after SIGINT



On Sep 26, 11:57am, Martijn Dekker wrote:
}
} % kill -s INT $$ || echo oops
} % echo $?
} 1

I can't "git pull" because sf.net is down right now, but:


diff --git a/Src/exec.c b/Src/exec.c
index bd242d1..0d2dc4e 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3199,7 +3199,8 @@ execcmd_exec(Estate state, Execcmd_params eparams,
     }
 
     if (errflag) {
-	lastval = 1;
+	if (!lastval)
+	    lastval = 1;
 	if (oautocont >= 0)
 	    opts[AUTOCONTINUE] = oautocont;
 	return;



Messages sorted by: Reverse Date, Date, Thread, Author