Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: exit status 0 after SIGINT
- X-seq: zsh-workers 41767
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: exit status 0 after SIGINT
- Date: Tue, 26 Sep 2017 10:49:47 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=/RXWJrjt3L2v2eSrTIAtW0pIquZzGYEQwgGMv+me8sA=; b=AWajLpOE4wrvOruqsac3YIAruDi3rCvjyMl91tkgU+D1xqoR9dY7h961D/hXh/Ey4u eu1ZG3b9M+Sli0AmSDAp3/w3qItA+nx9mnmCBA9AUBteztvUyNqFCSVAdg2nwTlULErK f5mxd8ZC0aI9xaChKrI0Z4LPwcT6afAWWslKursMKA4GvV4cDSQ0LGh8iOi0tUA8FgFZ gvhsQWywF1C70EeonLwdjJUnRjXswSKVFctQnU9awWIzol5ERvz4GFxmySHfWbu/90/o ge36B33G34T0/nVZVpULsneMK8sYWtjhTUVDLXEry9hVKW04OZAcnpCWBZFpxRol+x3X 9dig==
- In-reply-to: <757d2c4c-fb9f-d168-c70a-08560677a181@inlv.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20170925125104epcas5p3948e0702e32903ad3a09070937edbb54@epcas5p3.samsung.com> <2f98bd49-1439-2bd9-c7b2-7d05ac8678fc@inlv.org> <20170925145717.13849173@pwslap01u.europe.root.pri> <757d2c4c-fb9f-d168-c70a-08560677a181@inlv.org>
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