From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14016 invoked by alias); 6 Oct 2016 11:48:23 -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: 39580 Received: (qmail 28792 invoked from network); 6 Oct 2016 11:48:23 -0000 X-Qmail-Scanner-Diagnostics: from kahlil.inlv.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(37.59.109.123):SA:0(-2.6/5.0):. Processed in 0.436841 secs); 06 Oct 2016 11:48:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: martijn@inlv.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at inlv.org does not designate permitted sender hosts) Subject: Re: 'set -e' with '!' POSIX issue To: Zsh hackers list References: <70cf25f2-f156-51c4-60b6-00def8769328@inlv.org> <20161002185530.3fa8c013@ntlworld.com> <20161004074538.GD4212@cventin.lip.ens-lyon.fr> <20161004093005.7dbc6696@pwslap01u.europe.root.pri> <4e660f18-3850-d589-8a17-e75d2c419fbe@inlv.org> <20161005144703.12fdf6c4@pwslap01u.europe.root.pri> From: Martijn Dekker Message-ID: Date: Thu, 6 Oct 2016 13:22:10 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20161005144703.12fdf6c4@pwslap01u.europe.root.pri> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Op 05-10-16 om 15:47 schreef Peter Stephenson: > Please reassure me that this is correct: > > % ./zsh -fc 'set -e; foo() { false && false; echo OK; }; foo; echo $?' > OK > 0 Looks correct to me. It's consistent with the POSIX description and bash, (d)ash, yash, ksh93, mksh/pdksh all behave the same. - M.