From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16799 invoked from network); 27 Apr 2005 14:09:59 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Apr 2005 14:09:59 -0000 Received: (qmail 49632 invoked from network); 27 Apr 2005 14:09:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Apr 2005 14:09:46 -0000 Received: (qmail 28869 invoked by alias); 27 Apr 2005 14:09:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21198 Received: (qmail 28856 invoked from network); 27 Apr 2005 14:09:43 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Apr 2005 14:09:43 -0000 Received: (qmail 49346 invoked from network); 27 Apr 2005 14:09:43 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 27 Apr 2005 14:09:35 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IFL00G49ZBXK3LI@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Wed, 27 Apr 2005 09:09:34 -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 j3RE9WUJ029526 for ; Wed, 27 Apr 2005 07:09:32 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j3RE9WCT029525 for zsh-workers@sunsite.dk; Wed, 27 Apr 2005 07:09:32 -0700 Date: Wed, 27 Apr 2005 14:09:31 +0000 From: Bart Schaefer Subject: Re: localtraps In-reply-to: <200504270954.j3R9sujP029445@news01.csr.com> To: zsh-workers@sunsite.dk (Zsh hackers list) Message-id: <1050427140931.ZM29524@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050425063521.GA17598@quark.hightek.org> <1050425163202.ZM25027@candle.brasslantern.com> <20050426030308.GA21501@quark.hightek.org> <200504261834.j3QIYHSa018951@news01.csr.com> <1050427053638.ZM28743@candle.brasslantern.com> <200504270954.j3R9sujP029445@news01.csr.com> Comments: In reply to Peter Stephenson "Re: localtraps" (Apr 27, 10:54am) 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=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Apr 27, 10:54am, Peter Stephenson wrote: } } OK, this one's fairly straightforward: starttrapscope() and } endtrapscope() don't run inside traps. This works much better now, though there's still this extra newline being printed just before INNER on each alternate interrupt: ----- schaefer<501> TRAPINT() { setopt localoptions localtraps; echo OUTER; \ trap 'echo INNER' INT; sleep 2 } schaefer<502> OUTER INNER OUTER INNER OUTER INNER OUTER INNER OUTER INNER schaefer<502> ----- Plus the prompt not reprinted until accept-line or send-break, but that probably isn't a bug. } Are we reasonably confident the other problems are specific to the } NetBSD style of signal handling? I'm not confident of that, no. Let's wait and see what Vincent has to say after this patch is applied.