Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[buglet] Ctrl+C and 'kill -s INT $$' should produce exit status 130
- X-seq: zsh-workers 39392
- From: Martijn Dekker <martijn@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [buglet] Ctrl+C and 'kill -s INT $$' should produce exit status 130
- Date: Tue, 20 Sep 2016 14:17:08 +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
On an interactive shell, sending SIGINT to the shell (which could be
done with 'kill -s INT $$' or simply by pressing Ctrl+C) causes zsh to
return to the command prompt with an exit status of 0, which represents
a normal/successful exit. This should be 130, the exit status
corresponding to SIGINT (128+2).
% while :; do :; done
^C%
% echo $? # should produce 130
0
% kill -s INT $$; echo oops # no output produced, as expected
% echo $? # should produce 130
0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author