From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3131 invoked by alias); 8 Aug 2017 11:01:01 -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: 41512 Received: (qmail 697 invoked by uid 1010); 8 Aug 2017 11:01:01 -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.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(210.118.77.11):SA:0(-5.0/5.0):. Processed in 5.700017 secs); 08 Aug 2017 11:01:01 -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=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-AuditID: cbfec7ef-f79ee6d000003120-f7-598999e17a17 Date: Tue, 08 Aug 2017 12:00:46 +0100 From: Peter Stephenson To: Martijn Dekker , Zsh hackers list Subject: Re: 5.4 almost released Message-id: <20170808120046.1cc8c36d@pwslap01u.europe.root.pri> In-reply-to: <9581a3ad-bdf9-18cb-dc84-9d6fb34e93d5@inlv.org> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGIsWRmVeSWpSXmKPExsWy7djP87oPZ3ZGGpxulLI41ZVicbD5IZMD k8fftZOYPFYd/MAUwBTFZZOSmpNZllqkb5fAl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kJe1lB bDYBQ4mpm2YzgtgiAr4S06+eAbOFBRQkGt6vAlvBK2AvsXDCfbDVnAI2EpeXdjFCDG1mkehe eZoZJMEvoC9x9e8nJoj77CVmXoEYxCsgKPFj8j0WEJtZQEti87YmVghbXmLzmrfMED+oS9y4 u5t9AqPwLCQts5C0zELSsoCReRWjSGppcW56brGhXnFibnFpXrpecn7uJkZgXG079nPzDsZL G4MPMQpwMCrx8DJkdkQKsSaWFVfmHmKU4GBWEuG9nt0ZKcSbklhZlVqUH19UmpNafIjRFBgy E5mlRJPzgTGfVxJvaGJobmloZGxhYW5kpCTOq365KVJIID2xJDU7NbUgtQimj4mDU6qBsUCt c/26976S3y5y6cecyTlc2B616tbxc4m7sl512AfPbN1fMFHQwinoAUP+4YtXVRx2m76cwbnF 7ceCuLwJcSVv7K6mzgxa/T+He5EoZ2TS1dSSx2+iDrhd/v8zfOuE/9ozLb9GTteMXrlR5lRp w9GITU+/FPhLFj5M7LscxfS35e/f8poTqUosxRmJhlrMRcWJAN+5NLnBAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170808110049eucas1p2b37a88d9e5ce0c2389a3b765c2c690e0 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?UGV0ZXIgU3RlcGhlbnNvbhtTQ1NDLURhdGEgUGxhbmUb?= =?UTF-8?B?7IK87ISx7KCE7J6QG1ByaW5jaXBhbCBFbmdpbmVlciwgU29mdHdhcmU=?= X-Global-Sender: =?UTF-8?B?UGV0ZXIgU3RlcGhlbnNvbhtTQ1NDLURhdGEgUGxhbmUbU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtQcmluY2lwYWwgRW5naW5lZXIsIFNvZnR3YXJl?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDA1Q0QwNTAwNTg=?= CMS-TYPE: 201P X-CMS-RootMailID: 20170807135641epcas3p4bc0a64f832ae7fcd76051ac198722045 X-RootMTR: 20170807135641epcas3p4bc0a64f832ae7fcd76051ac198722045 References: <20170807135559.odtceysgqn5qeqql@tarpaulin.shahaf.local2> <20170807152649.6a5e7d70@pwslap01u.europe.root.pri> <20170807155856.7882f89f@pwslap01u.europe.root.pri> <20170807190350.48cb55d7@ntlworld.com> <3d089ce2-e5d8-e1fc-e36c-2430b636d8d0@gmx.com> <20170807193412.3ff8651c@ntlworld.com> <9581a3ad-bdf9-18cb-dc84-9d6fb34e93d5@inlv.org> On Tue, 8 Aug 2017 11:26:47 +0100 Martijn Dekker wrote: > The recent POSIX_STRINGS-related change (41499, 2eacbef) introduced at > least one serious bug. I think you should probably revert that commit > before the 5.4 release so it can have more testing before 5.4.1 or > whatever the release after this one is. I'll probably back it off and make a 5.4.1 this evening as 5.4 is already tagged. Any fix will therefore be delayed until at least the next full release (presumably 5.5). > $* concatenated, IFS is space: > > emulate sh > set " abc " " def ghi " " jkl " > IFS=' ' > set xx$*yy > echo "$#,$1|$2|$3|$4|$5|$6" > > Actual output: 5,xx|abc|def|ghi|jklyy| > Expected output: 6,xx|abc|def|ghi|jkl|yy > > The 'yy' is joined to the final 'jkl' instead of becoming a separate > argument. In other words, we are splitting on $* because that's the parameter we are substituting, and performing any further processing on the result of that, whereas in effect the rules want us to think of xx$1 ... ${N}yy as arguments to be split (and the yy might itself be a further substitution). I'm not sure we have a suitable level of expansion at which to fix this up neatly, and cases like $*$x where $x is empty but we haven't expanded it yet when we encounter $* are likely to be horrible. I will therefore probably leave the fix to someone who has more interest in POSIX tweaks. pws