From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25482 invoked from network); 27 Jun 2005 14:32:23 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Jun 2005 14:32:23 -0000 Received: (qmail 2926 invoked from network); 27 Jun 2005 14:32:17 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Jun 2005 14:32:17 -0000 Received: (qmail 25356 invoked by alias); 27 Jun 2005 14:32:15 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21390 Received: (qmail 25347 invoked from network); 27 Jun 2005 14:32:14 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Jun 2005 14:32:14 -0000 Received: (qmail 2617 invoked from network); 27 Jun 2005 14:32:14 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 27 Jun 2005 14:32:10 -0000 Received: from candle.brasslantern.com ([71.116.88.149]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IIQ00FU4Z19R9DG@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 27 Jun 2005 09:31:58 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j5REVtAI032493 for ; Mon, 27 Jun 2005 07:31:56 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j5REVt7L032492 for zsh-workers@sunsite.dk; Mon, 27 Jun 2005 07:31:55 -0700 Date: Mon, 27 Jun 2005 14:31:55 +0000 From: Bart Schaefer Subject: Re: subtle `echo' bug In-reply-to: <200506271003.j5RA31Uw007298@news01.csr.com> To: zsh-workers@sunsite.dk Message-id: <1050627143155.ZM32491@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050614172738.GL4685@solemn.turbinal.org> <200506142212.24133.arvidjaar@newmail.ru> <1050615002844.ZM7767@candle.brasslantern.com> <200506150910.j5F9AEFa009630@news01.csr.com> <200506151356.j5FDunra015702@news01.csr.com> <1050615153214.ZM10443@candle.brasslantern.com> <200506151549.j5FFn94K018908@news01.csr.com> <1050615163946.ZM10520@candle.brasslantern.com> <200506271003.j5RA31Uw007298@news01.csr.com> Comments: In reply to Peter Stephenson "Re: subtle `echo' bug" (Jun 27, 11:03am) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Jun 27, 11:03am, Peter Stephenson wrote: } } Are we going to do this? I don't see any harm in it, but I have one last question ... In looking at the code earlier in this function, I find that it's zsh that does (the equivalent of) val |= 0200 before testing (val & 0200). This makes me wonder if we should be using (val & ~0200) rather than WTERMSIG(val) here. } + if ((val & 0200) && inforeground == 1 && } + (WTERMSIG(val) == SIGINT || WTERMSIG(val) == SIGQUIT)) { It *probably* doesn't matter either way ...