From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7668 invoked from network); 12 Feb 2005 21:05:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Feb 2005 21:05:27 -0000 Received: (qmail 98208 invoked from network); 12 Feb 2005 21:05:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Feb 2005 21:05:18 -0000 Received: (qmail 1557 invoked by alias); 12 Feb 2005 21:05:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20809 Received: (qmail 1544 invoked from network); 12 Feb 2005 21:05:15 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Feb 2005 21:05:15 -0000 Received: (qmail 97711 invoked from network); 12 Feb 2005 21:04:39 -0000 Received: from dan.emsphone.com (199.67.51.101) by a.mx.sunsite.dk with SMTP; 12 Feb 2005 21:04:34 -0000 Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j1CL4TBZ060732; Sat, 12 Feb 2005 15:04:29 -0600 (CST) (envelope-from dan) Date: Sat, 12 Feb 2005 15:04:29 -0600 From: Dan Nelson To: "Matthias B." Cc: Zsh hackers list Subject: Re: trap .. EXIT doesn't execute when exit is due to a signal Message-ID: <20050212210429.GF49626@dan.emsphone.com> References: <20050212122658.4ae2739b@buddha> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050212122658.4ae2739b@buddha> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.7i 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 In the last episode (Feb 12), Matthias B. said: > trap ... EXIT doesn't execute ... when the shell is terminated due to > a signal (e.g. Ctrl-C). I think this is a bug. It's certainly > undesirable, because it causes cleanup tasks to not be executed. Bash > doesn't have this problem. zsh-users 3513 describes what is happening here, I think. Ash and /Solaris bin/sh have the same behaviour. -- Dan Nelson dnelson@allantgroup.com