From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 47e06e69 for ; Thu, 20 Feb 2020 09:31:24 +0000 (UTC) Received: (qmail 25981 invoked by alias); 20 Feb 2020 09:31:17 -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: 45480 Received: (qmail 16256 invoked by uid 1010); 20 Feb 2020 09:31:17 -0000 X-Qmail-Scanner-Diagnostics: from mailout1.w1.samsung.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25725. spamassassin: 3.4.2. Clear:RC:0(210.118.77.11):SA:0(-7.0/5.0):. Processed in 3.374598 secs); 20 Feb 2020 09:31:17 -0000 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.samsung.com designates 210.118.77.11 as permitted sender) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200220093036euoutp0100a1e9521cc3988fd9fbd2ff7d693d65~1El1lwUaX1894918949euoutp01Z X-AuditID: cbfec7f2-f0bff7000001ef66-f0-5e4e51bbc3d7 Message-ID: <1582191034.4554.3.camel@samsung.com> Subject: Re: [BUG] Issue with set built-in in 5.8 (?) From: Peter Stephenson To: Zsh Hackers' List Date: Thu, 20 Feb 2020 09:30:34 +0000 In-Reply-To: X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8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MXbuSuYFxKkcXIyeHhICJxJ6mvSxdjFwcQgJLGSV2HXnLCpGQkfh05SM7hC0s 8edaFxtEUTeTxI+H66GcM4wSPfPbodovMEpsPneECaSFV8BQounYQhYQW1jAVOLP+k9gY9mA 4lM3zWbsYuTgEBHQlmj/KAZisgioSly/5gRicgpYS5xcEgsx8SKTxJWNK8GmMAtoSrRu/w11 kIbEhpvHoDYJSpyc+QSqRl6ieets5gmMQrOQtMxCUjYLSdkCRuZVjCKppcW56bnFhnrFibnF pXnpesn5uZsYgYG/7djPzTsYL20MPsQowMGoxMP7Qd03Tog1say4MvcQowQHs5IIrxqPX5wQ b0piZVVqUX58UWlOavEhRlOgfyYyS4km5wOjMq8k3tDU0NzC0tDc2NzYzEJJnLdD4GCMkEB6 YklqdmpqQWoRTB8TB6dUA2Od3oGHKbt+uYkLVGzUObr5990XE0yO5y8X6tip9d6b0d/tfkX7 CatnE7W/qay3Cbp5PVpRR+3GarUMH9bvvybc5mJc9M9o//aGI6c29inLmV80XOdfu+VOksaM Ka0PjiwKPLDlhqxjSqF/p3VnUL2f55wNZxtKVeX66twzZNUuPtjVaGSsZ6LEUpyRaKjFXFSc CABWahTnkgIAAA== X-CMS-MailID: 20200220093035eucas1p1cafa74c421f92d281343028c89432e01 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200218200226eucas1p2354131b2a9926f2c9e61721e41801029 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200218200226eucas1p2354131b2a9926f2c9e61721e41801029 References: <6908034E-BC9E-41B3-8457-111F275AF3A7@dana.is> <20200217090236.17a82c53@tarpaulin.shahaf.local2> <75380C1D-ED7C-46A8-AB57-5FC9892581A5@dana.is> <1582105061.6506.5.camel@samsung.com> On Wed, 2020-02-19 at 13:25 -0600, dana wrote: > On 19 Feb 2020, at 03:37, Peter Stephenson wrote: > > > > Tracing through POSIX to get an exact answer can be a bit of a pain > I found it: > >   https://protect2.fireeye.com/url?k=ce2973a8-93fdceec-ce28f8e7-0cc47a31381a-9cb7538620366aa8&u=https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_01 > > When encountering a 'special built-in utility error', a non-interactive shell > 'shall exit'. The documentation for the set built-in doesn't seem to > anticipate any errors besides those related to option-parsing, but i guess the > 'letter of the law' is clear; if we were going to follow it strictly, we'd > leave set the way it is. > > idk. On balance, maybe we should just let it be until someone complains (which > probably won't happen). Otherwise, with all of the weird variables in this > code path, we could be tinkering with it until next February... If this is behaviour of set that's not itself covered by POSIX, it's definitely not so clear, and yes, I agree in practice we very likely get away with it. We have the possibility of covering variant behaviour with the POSIX_BUILTINS option if it's important enough. pws