From: Martijn Dekker <martijn@inlv.org>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: exit status 0 after SIGINT
Date: Tue, 26 Sep 2017 11:57:33 +0100 [thread overview]
Message-ID: <757d2c4c-fb9f-d168-c70a-08560677a181@inlv.org> (raw)
In-Reply-To: <20170925145717.13849173@pwslap01u.europe.root.pri>
Op 25-09-17 om 14:57 schreef Peter Stephenson:
> We ignore interrupts that happened in bulltins, in this case the "kill"
> that just got interrupted. This looks pretty clearly wrong.
>
> One minimal fix is to keep the current lastval if there's an interrupt
> flagged. Alternatively, we could keep the builtin status if it was
> non-zero.
>
> I doubt we're going to track down side effects without trying it out.
An oddity remains:
% kill -s INT $$ || echo oops
% echo $?
1
% kill -s INT $$ && echo oops
% echo $?
130
Both should be 130.
This is the same when using external 'kill' (e.g. after 'disable kill').
Thanks,
- M.
next prev parent reply other threads:[~2017-09-26 10:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170925125104epcas5p3948e0702e32903ad3a09070937edbb54@epcas5p3.samsung.com>
2017-09-25 12:50 ` Martijn Dekker
2017-09-25 13:57 ` Peter Stephenson
2017-09-26 10:57 ` Martijn Dekker [this message]
2017-09-26 17:49 ` Bart Schaefer
2017-09-27 8:35 ` Peter Stephenson
2017-09-27 19:59 ` Bart Schaefer
2017-09-26 18:15 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=757d2c4c-fb9f-d168-c70a-08560677a181@inlv.org \
--to=martijn@inlv.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).