From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12796 invoked by alias); 10 Apr 2015 16:34:14 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20129 Received: (qmail 6225 invoked from network); 10 Apr 2015 16:34:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MISSING_HEADERS, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 X-Originating-IP: [80.3.228.158] X-Spam: 0 X-Authority: v=2.0 cv=J/vyd3bS c=1 sm=1 a=P+FLVI8RzFchTbbqTxIDRw==:17 a=9cW_t1CCXrUA:10 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=q2GGsy2AAAAA:8 a=HYshxDoSAAAA:8 a=yc7KBK14lYHO_I6IIWcA:9 a=CjuIK1q_8ugA:10 a=0Jnk2-L2-M8A:10 a=ilrFW1tIaHwA1pOb:21 a=G_u411_nQ1dRgmeu:21 a=P+FLVI8RzFchTbbqTxIDRw==:117 Date: Fri, 10 Apr 2015 17:28:33 +0100 From: Peter Stephenson Cc: zsh-users@zsh.org Subject: Re: How to trap EXIT like in bash Message-ID: <20150410172833.3a359f39@ntlworld.com> In-Reply-To: <150404142524.ZM15073@torch.brasslantern.com> References: <150404113557.ZM14788@torch.brasslantern.com> <1428167314.5875.2.camel@niobium.home.fifi.org> <150404114859.ZM14898@torch.brasslantern.com> <150404132528.ZM14947@torch.brasslantern.com> <150404135557.ZM14999@torch.brasslantern.com> <150404142524.ZM15073@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 4 Apr 2015 14:25:24 -0700 Bart Schaefer wrote: > On Apr 4, 1:55pm, Bart Schaefer wrote: > } > } http://www.zsh.org/mla/workers//2004/msg00460.html > } > } It seems asserted in that thread that the Bash behavior is not only not > } compatible with FreeBSD, but is also not POSIX compliant, which is why > } the default for zsh got changed. > > Hmm, except that the NEWS file and the early part of that thread claim > that TRAPS_ASYNC is the default for zsh because of historic behavior, > but then workers/19858 changes OPT_EMULATE|OPT_NONBOURNE to 0 so that > TRAPS_ASYNC is never on by default. > > Was this just a botch in 19858 (should have been OPT_ZSH ?) that no one > ever noticed? I can't tell from the archived discussion whether this was > done intentionally. Would guess so, given the discussion, and I don't suppose we're going to find out after this length of time, so maybe this should be rectified. pws