From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2742 invoked by alias); 15 Aug 2015 01:04:53 -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: 36178 Received: (qmail 8903 invoked from network); 15 Aug 2015 01:04:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.0 Date: Sat, 15 Aug 2015 03:04:51 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: PRINT_EXIT_VALUE: Suppress for if/while conditions Message-ID: <20150815010451.GA16635@ioooi.vinc17.net> Mail-Followup-To: zsh-workers@zsh.org References: <20150731231225.GB2054@tarsus.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150731231225.GB2054@tarsus.local2> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6477-vl-r81226 (2015-08-07) On 2015-07-31 23:12:25 +0000, Daniel Shahaf wrote: > I'd like to disable the effect of PRINT_EXIT_VALUE while evaluating > if/while conditions, since it's uninformative (conditions sometimes > fail, that's their sine qua non) and annoying (when doing a for/if > interactively and the 'if' condition is false in many iterations, the > option must be disabled to prevent stderr spamming). It's also annoying in loops, e.g. for i in **/*.gz; zgrep foo $i -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)