Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
exit status 0 after SIGINT
- X-seq: zsh-workers 41760
- From: Martijn Dekker <martijn@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: exit status 0 after SIGINT
- Date: Mon, 25 Sep 2017 13:50:15 +0100
- 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
zsh in interactive mode sets the exit status to 0 after sending itself
SIGINT using the 'kill' command. I'd expect 130 (= 2 + 128).
Interestingly enough, pressing Ctrl+C does set the exit status to 130.
% [presses Ctrl+C]
% echo $?
130
% kill -s INT $$
$ echo $?
0
- Martijn
Messages sorted by:
Reverse Date,
Date,
Thread,
Author