From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13636 invoked from network); 1 Apr 2005 12:08:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Apr 2005 12:08:33 -0000 Received: (qmail 56488 invoked from network); 1 Apr 2005 12:08:27 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Apr 2005 12:08:27 -0000 Received: (qmail 422 invoked by alias); 1 Apr 2005 12:08:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21080 Received: (qmail 400 invoked from network); 1 Apr 2005 12:08:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 Apr 2005 12:08:13 -0000 Received: (qmail 56215 invoked from network); 1 Apr 2005 12:08:13 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 1 Apr 2005 12:08:08 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Fri, 1 Apr 2005 13:06:31 +0100 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 1 Apr 2005 13:10:36 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j31C86HN018465 for ; Fri, 1 Apr 2005 13:08:06 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j31C86Qo018462 for ; Fri, 1 Apr 2005 13:08:06 +0100 Message-Id: <200504011208.j31C86Qo018462@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: Parse errors don't cause a non-zero exit code? In-reply-to: <20050329231719.GH51674@dan.emsphone.com> References: <20050329231719.GH51674@dan.emsphone.com> Date: Fri, 01 Apr 2005 13:08:05 +0100 From: Peter Stephenson X-OriginalArrivalTime: 01 Apr 2005 12:10:36.0152 (UTC) FILETIME=[CFB1F780:01C536B3] 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 Dan Nelson wrote: > A related comment: The zsh documentation uses all six combinations of > "{exit,return} {code,value,status}", making it hard to search :( I've committed a very dull patch to standardise on "status" for return and exit statuses. It's still not completely consistent about distinguishing an exit status (the value returned by a command as seen by the caller) from a return status (the value returned by a function or builtin as seen by the command itself), but that would take more thought; what's more, "the builtin/function returns status X" is a perfectly natural way of saying "returns the exit status X" given that the command doesn't actually exit (in the UNIX sense). In other words, I don't think I want to play any more. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************