From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12766 invoked by alias); 20 Sep 2016 13:43:12 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39392 Received: (qmail 1335 invoked from network); 20 Sep 2016 13:43:12 -0000 X-Qmail-Scanner-Diagnostics: from kahlil.inlv.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(37.59.109.123):SA:0(-3.1/5.0):. Processed in 0.589338 secs); 20 Sep 2016 13:43:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: martijn@inlv.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at inlv.org does not designate permitted sender hosts) To: Zsh hackers list From: Martijn Dekker Subject: [buglet] Ctrl+C and 'kill -s INT $$' should produce exit status 130 Message-ID: <13e6db91-8ba9-8709-9708-5126ce882145@inlv.org> Date: Tue, 20 Sep 2016 14:17:08 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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