From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24761 invoked from network); 27 Oct 2000 13:28:26 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 Oct 2000 13:28:26 -0000 Received: (qmail 4470 invoked by alias); 27 Oct 2000 13:27:39 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3489 Received: (qmail 4452 invoked from network); 27 Oct 2000 13:27:38 -0000 To: zsh-users@sunsite.auc.dk Date: 27 Oct 2000 15:28:43 +0200 From: Akim Demaille Message-ID: Organization: EPITA / LRDE MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii References: <000001c0400a$54f99fb0$21c9ca95@mow.siemens.ru>, <0G330024BBOLZ9@la-la.cambridgesiliconradio.com> Subject: Re: Trap and exit Sender: news >>>>> "Peter" == Peter Stephenson writes: Peter> But then, you could argue that the false was the last command Peter> before the script exited, and is hence the one referred to in Peter> this case --- given that this is exactly what happens with an Peter> implicit exit by falling off the end. Whatever you decide, please remain compatible with the workaround used in Autoconf: using `(exit 77); exit 77' instead of `exit 77' must have the desired property: the trap is triggered, and it receives $? = 77.