From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11135 invoked from network); 22 Jul 2009 08:17:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 22 Jul 2009 08:17:53 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 56883 invoked from network); 22 Jul 2009 08:17:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Jul 2009 08:17:45 -0000 Received: (qmail 12891 invoked by alias); 22 Jul 2009 08:17:38 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27183 Received: (qmail 12881 invoked from network); 22 Jul 2009 08:17:37 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 22 Jul 2009 08:17:37 -0000 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by bifrost.dotsrc.org (Postfix) with ESMTP id C6FFE8027106 for ; Wed, 22 Jul 2009 10:17:31 +0200 (CEST) Received: from smtp3-g21.free.fr (localhost [127.0.0.1]) by smtp3-g21.free.fr (Postfix) with ESMTP id EB8AF818179; Wed, 22 Jul 2009 10:17:28 +0200 (CEST) Received: from xvii.vinc17.org (c5850-a2-3-62-147-10-57.dial.proxad.net [62.147.10.57]) by smtp3-g21.free.fr (Postfix) with ESMTP id 46FCA818119; Wed, 22 Jul 2009 10:17:24 +0200 (CEST) Received: from vinc17 by xvii.vinc17.org with local (Exim 4.69) (envelope-from ) id 1MTWzq-0003Bo-HF; Wed, 22 Jul 2009 10:16:18 +0200 Date: Wed, 22 Jul 2009 10:16:18 +0200 From: Vincent Lefevre To: zsh-workers@sunsite.dk Subject: Re: zsh 4.3.10 terminates with SIGINT when one types Ctrl-G in emacs under Mac OS X Message-ID: <20090722081618.GA11668@xvii.vinc17.org> Mail-Followup-To: zsh-workers@sunsite.dk References: <090712193623.ZM14823@torch.brasslantern.com> <200907131839.n6DIdO6Z003291@pws-pc.ntlworld.com> <20090716162419.GA26179@prunille.vinc17.org> <090717222936.ZM8648@torch.brasslantern.com> <20090718101602.GA5392@xvii> <090718113509.ZM10405@torch.brasslantern.com> <20090718230930.GB5412@xvii> <090719113147.ZM3140@torch.brasslantern.com> <20090720083128.GA6861@xvii> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.20-5984-vl-r30292 (2009-07-17) X-Virus-Scanned: ClamAV 0.94.2/9604/Wed Jul 22 02:59:17 2009 on bifrost X-Virus-Status: Clean On 2009-07-22 02:58:37 +0000, Eric Blake wrote: > POSIX requires that if a shell starts life with a signal ignored, > that the shell should silently reject attempts to alter the fact > that the signal is ignored (either back to a default, or to a > user-specified handler). Which is very annoying if your shell ever > gets started with SIGPIPE ignored, but that's life. In other words, > if you start bash with SIGINT ignored, you can't undo that from > within the bash shell. OK, thanks for the explanations. So, the following script shows a bug in zsh (typing Ctrl-C immediately interrupts the sleep and the script and SIGINT is output): #!/bin/sh trap '' INT zsh -fc "emulate sh; trap 'echo SIGINT; exit' INT; sleep 6" I wonder whether zsh should behave in the same way without "emulate sh". -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)