From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15635 invoked by alias); 4 Apr 2015 20:56:13 -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: 20091 Received: (qmail 10963 invoked from network); 4 Apr 2015 20:56:02 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=9JRyOkAvV631di8Ik1vDcoIdhRi1wlHvcds1FZR7G6Q=; b=YwkulD7DikFQ0Naa3QjKTGgn2AaoK/DLLdHvKU35yT62h2gYD5XBFH9fzps3Kz04tI xsI3G1C3T8T/Puq6oMsD7gqTGY5zeKiwT4gHeaOn4ndHEWeQRlU5M22QA/tVLgAa6bbI HKZiWW9UVoAIrxscQEzcNORjf/HwU+neO5nfx/QlEp4Bz/hP/41DQ2kzMr/jmnhvs8Q3 guFtRWCfCWr/1gPulb93TQKwhHC+obQISt/OFrbirDn/8+3zASExqpbvlS+Ba+FGPiKU qB/0SRnEjnjLFtZJ2Qdd4rzcoCVYvDfvmhQR97RSy0MIsg0KnceTzt6Tt/1xvqKW6OGi Fr/Q== X-Gm-Message-State: ALoCoQkYGwtSIaGLLm29nSqI/IM+wbXveThmwdT2YxlBJe5zvGhBk/n2g6VnccpplIiR5bK27Fis X-Received: by 10.60.149.166 with SMTP id ub6mr9921032oeb.41.1428180960610; Sat, 04 Apr 2015 13:56:00 -0700 (PDT) From: Bart Schaefer Message-Id: <150404135557.ZM14999@torch.brasslantern.com> Date: Sat, 4 Apr 2015 13:55:57 -0700 In-Reply-To: <150404132528.ZM14947@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: How to trap EXIT like in bash" (Apr 4, 1:25pm) References: <150404113557.ZM14788@torch.brasslantern.com> <1428167314.5875.2.camel@niobium.home.fifi.org> <150404114859.ZM14898@torch.brasslantern.com> <150404132528.ZM14947@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: How to trap EXIT like in bash MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 4, 1:25pm, Bart Schaefer wrote: } } } Tested on Cygwin and Ubuntu 14.10. } } Oh. You need "setopt TRAPS_ASYNC": } } The signal isn't ignored, it just isn't handled right away. The original discussion about TRAPS_ASYNC starts here: 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.