From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9570 invoked by alias); 14 May 2013 18:52:26 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31405 Received: (qmail 3652 invoked from network); 14 May 2013 18:52:11 -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 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.51 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-proxyuser-ip:date:from:to:subject:message-id :in-reply-to:references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=m8C68S83etaiA6K4xQO4IlxE6YuLWRexV9WVG54Rz8Q=; b=aNSBLA+KhCLqtwBskp2gYb8HkSJmHxLOAYd3G3A5niqp+nxb3kPhtHtUUvMY7R9em5 TMOumxAwX8Gz7nuFOuZBbPZOUycDhQzrVQUx8fv5qqbrTUQ48X9uLRmuE/4/4as+HnVA nOKbqVB7jCOvYRX3ny78Kq0pbOOmNlmsTqAOtFPy7q7PYF6oX1RweH+yJyKsonYx+WZw LntoJFo9YRsXd4xkBoh87uDv3Dduw3lG61ahBHSY1OEwanIOWcVTaqStKZxYuA5F7Vju fx/wwuwY/gbjUejS4VsnCbZ7Or52xK8JFLSYPd9bqvL8vIwIobK6yCuwX1an2PMZ7WY5 60NQ== X-Received: by 10.180.126.10 with SMTP id mu10mr9291011wib.16.1368557201255; Tue, 14 May 2013 11:46:41 -0700 (PDT) X-ProxyUser-IP: 86.6.30.159 Date: Tue, 14 May 2013 19:46:38 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: PRINT_EXIT_VALUE option in scripts Message-ID: <20130514194638.24aa25d8@pws-pc.ntlworld.com> In-Reply-To: <20130514141545.GB3544@ypig.lip.ens-lyon.fr> References: <20130514141545.GB3544@ypig.lip.ens-lyon.fr> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkmdwUedpaDvZMN3R/yiJ1DWOt+Tn0t17NHsXjLcn+RuRBHcVJgYfUrRG+OY4JOIPGqlUcS On Tue, 14 May 2013 16:15:45 +0200 Vincent Lefevre wrote: > The PRINT_EXIT_VALUE option doesn't work in scripts or when a file > is sourced: Looking at the code it's not entirely clear to me what the determing factor is, but the following weasel words ought to do it. diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index ce24a22..60892dd 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -1240,6 +1240,7 @@ pindex(NOPRINTEXITVALUE) cindex(exit status, printing) item(tt(PRINT_EXIT_VALUE) (tt(-1)))( Print the exit value of programs with non-zero exit status. +This is only available at the command line in interactive shells. ) pindex(RC_QUOTES) pindex(NO_RC_QUOTES) -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/