From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14242 invoked from network); 30 May 2005 18:42:00 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 May 2005 18:42:00 -0000 Received: (qmail 39719 invoked from network); 30 May 2005 18:41:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 May 2005 18:41:54 -0000 Received: (qmail 1644 invoked by alias); 30 May 2005 18:41:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21292 Received: (qmail 1633 invoked from network); 30 May 2005 18:41:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 30 May 2005 18:41:51 -0000 Received: (qmail 39449 invoked from network); 30 May 2005 18:41:51 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 30 May 2005 18:41:47 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IHB00BBCFXLI0I2@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 30 May 2005 13:41:46 -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 j4UIfiMl030461; Mon, 30 May 2005 11:41:44 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j4UIfi1k030460; Mon, 30 May 2005 11:41:44 -0700 Date: Mon, 30 May 2005 18:41:43 +0000 From: Bart Schaefer Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR). In-reply-to: <20050530140616.GA7651@scowler.net> To: zsh-workers@sunsite.dk Cc: 310872@bugs.debian.org Message-id: <1050530184143.ZM30459@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <200505261638.SAA09610@sdt.univ-brest.fr> <20050526191520.GA30061@scowler.net> <42971781.9050402@free.fr> <20050530140616.GA7651@scowler.net> Comments: In reply to Clint Adams "Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR)." (May 30, 10:06am) 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 May 30, 10:06am, Clint Adams wrote: } Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR). } } If the wise people on zsh-workers think that not understanding ERR is } acceptable for ksh emulation, I'm inclined to do nothing. Please note that I was not making any sort of judgement about whether zsh *ought* to treat ERR differently in ksh mode. I merely explained why zsh behaves the way it does. (Google indicates that ksh does run on UNICOS; I wonder what it does with ERR in that case.) I note in passing that "trap" in zsh doesn't understand all the same signals that "kill" does. For example, when the OS defines both, "kill" understands SIGIO as a synonym for SIGPOLL and SIGCLD for SIGCHLD, but "trap" only knows CHLD and POLL. Perhaps the "alt_sigs" code should be factored out of jobs.c [*] and extended to cover SIGERR as well. Whether that's enabled only in ksh emulation is a second question. [*] Or perhaps bin_trap() should be moved *to* jobs.c.