From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7829 invoked by alias); 12 Nov 2017 19:57:08 -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: List-Unsubscribe: X-Seq: 42017 Received: (qmail 16454 invoked by uid 1010); 12 Nov 2017 19:57:08 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-7.server.virginmedia.net 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(80.0.253.71):SA:0(-4.7/5.0):. Processed in 5.746664 secs); 12 Nov 2017 19:57:08 -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=-4.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [86.21.219.59] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.1 cv=Ms6vkDue c=1 sm=1 tr=0 a=utowdAHh8RITBM/6U1BPxA==:117 a=utowdAHh8RITBM/6U1BPxA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=x7bEGLp0ZPQA:10 a=q2GGsy2AAAAA:8 a=PAiplEu1NoDmVJqj6i4A:9 a=CjuIK1q_8ugA:10 a=z9dJwno5l634igLiVhy-:22 Date: Sun, 12 Nov 2017 19:56:57 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [PATCH] don't exit shell on [[ -o invalid@option ]] Message-ID: <20171112195657.74fb0b8a@ntlworld.com> In-Reply-To: <171111151905.ZM20139@torch.brasslantern.com> References: <0d6faa9a-fb69-8343-9630-a60d8f1bee0a@inlv.org> <171110143717.ZM16244@torch.brasslantern.com> <20171111124528.035a70ac@ntlworld.com> <38275e86-81c7-dbf8-544e-b0a399a4461d@inlv.org> <171111151905.ZM20139@torch.brasslantern.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1510516618; bh=Kqg6C16UYRu6gV3bjqZJd7QRZQfQlnQJcVvo5tbu97I=; h=Date:From:To:Subject:In-Reply-To:References; b=QrYOl2bW1pFzJLtBfp09vdb8fvCc/ad6qZtA7fA9KzkDW6xBaNoxTQJ+rF5y4BBRZ mupSfQdvqvOX1vefD5TofQbEWTFf9xNksd3IPJJD+N2J4ruBWv8zbL9kHuulDRukoK jBJoytfdGTZ4QLu4q7kn7Eys2pf+zhsI6oyGlPLm2CAfYbZZUmegvSfunSYagQNhFO 4x5ueOyr+WPgpIgNxInFe9Mt0HDj+DmsxWcwC/phbW1+gtSRvp6lN40Bd/uucYJvcx hogX55+/Td/arEOE08BzXG71fAWoBQwzqu6LqhW8xAnq0akfKcjHbKX4nnqdtWmtoi JIOSTHZKB3B2Q== On Sat, 11 Nov 2017 15:19:05 -0800 Bart Schaefer wrote: > On Nov 11, 7:01pm, Martijn Dekker wrote: > } > } Op 11-11-17 om 12:45 schreef Peter Stephenson: > } > On Fri, 10 Nov 2017 14:37:17 -0800 > } > Bart Schaefer wrote: > } >> We could certainly suppress the error in emulation modes > } > > } > We could attach it to POSIXBUILTINS as that does control some aspects > } > } Seems a bit wrong as this is not POSIX at all. > > I was thinking more along the lines of tying it to EMULATION(EMULATE_SH) > rather directly to a given option bit. So you get it if the shell is > started as sh/ksh/etc., but you can't switch it on if started as zsh. This is tending to hide the knob under the sticky out bit at the top where the logo is attached (as it were). Maybe we should just accept the original patch and note the incimpatibility. It's a non-issue for properly written shell code anyway. pws