From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22371 invoked from network); 29 Mar 2006 09:04:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Mar 2006 09:04:04 -0000 Received: (qmail 59640 invoked from network); 29 Mar 2006 09:03:58 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Mar 2006 09:03:58 -0000 Received: (qmail 768 invoked by alias); 29 Mar 2006 09:03:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10100 Received: (qmail 757 invoked from network); 29 Mar 2006 09:03:44 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 29 Mar 2006 09:03:44 -0000 Received: (qmail 58019 invoked from network); 29 Mar 2006 09:03:44 -0000 Received: from vinc17.net8.nerim.net (HELO prunille.vinc17.org) (62.212.121.106) by a.mx.sunsite.dk with SMTP; 29 Mar 2006 09:03:42 -0000 Received: by prunille.vinc17.org (Postfix, from userid 501) id 158497C49CC; Wed, 29 Mar 2006 11:03:39 +0200 (CEST) Date: Wed, 29 Mar 2006 11:03:39 +0200 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: does zsh ignore the QUIT signal? Message-ID: <20060329090339.GF22295@prunille.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.11-vl-20060315 When I type "while true; do true; done" from an interactive zsh shell, I can't interrupt it with SIGQUIT (either with Ctrl-\ or with the "kill -QUIT " command): sending this signal has no effect. Is this normal? Searching for QUIT in the zsh man page, I just get: SIGNALS The INT and QUIT signals for an invoked command are ignored if the com- mand is followed by `&' and the MONITOR option is not active. Other- wise, signals have the values inherited by the shell from its parent (but see the TRAPNAL special functions in the section `Functions'). whereas in the bash man page, this behavior is documented: SIGNALS When bash is interactive, in the absence of any traps, it ignores SIGTERM (so that kill 0 does not kill an interactive shell), and SIGINT is caught and handled (so that the wait builtin is interruptible). In all cases, bash ignores SIGQUIT. If job control is in effect, bash ignores SIGTTIN, SIGTTOU, and SIGTSTP. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA