From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18782 invoked by alias); 2 Mar 2017 10:47:31 -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: 40692 Received: (qmail 18171 invoked from network); 2 Mar 2017 10:47:31 -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 1.942318 secs); 02 Mar 2017 10:47:31 -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 autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at samsung.com does not designate permitted sender hosts) X-AuditID: cbfec7ef-f79d26d00000420c-59-58b7f83a7ae7 Date: Thu, 02 Mar 2017 10:47:10 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [^ax-y] doesn't work but [^x-ya] does Message-id: <20170302104710.6eed8ece@pwslap01u.europe.root.pri> In-reply-to: <1488440005.4187177.897775384.2538F781@webmail.messagingengine.com> 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+NgFnrLIsWRmVeSWpSXmKPExsWy7djP87pWP7ZHGGz/p2FxsPkhkwOjx6q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1Kw8icYZRYsucOcwgCRYBVYkrbx+AjWUTMJSYumk2 2FgRAXGJs2vPs4DYwgJGEgefTQSzeQXsJaa+/wzWyykQIPHtwWGobUsZJX5P2gxWxC+gL3H1 7ycmiPvsJWZeOcMI0Swo8WPyPbAaZgEtic3bmlghbHmJzWveMkNcqi5x4+5u9gmMwrOQtMxC 0jILScsCRuZVjCKppcW56bnFhnrFibnFpXnpesn5uZsYgXG07djPzTsYL20MPsQowMGoxMN7 gGl7hBBrYllxZe4hRgkOZiURXoPPQCHelMTKqtSi/Pii0pzU4kOMpsCQmcgsJZqcD4zxvJJ4 QxNDc0tDI2MLC3MjIyVx3pIPV8KFBNITS1KzU1MLUotg+pg4OKUaGLl+RHN6Svhsk+j482kP s+iNzf27hOT2uXxYYxG/SEL8lcW8srXP+bVXHNBK+aouUP5Ql4tXuuWQbV77Wd1vnW1v4uJY IlNspoVELFzDu3yfjfRrCWH/f+1TRVX/bv6dWfmf5ceL/hUX7C8G1ddsPBLOum/j9oM77a4/ S0vaf+x7yYSwX1M8ZJVYijMSDbWYi4oTAc9+lre5AgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170302104719eucas1p27176c13f88378d6f9015601ff5e1d8fa 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-HopCount: 7 X-CMS-RootMailID: 20170302073436epcas2p1ee2d6d723bc7b0865e11243777a08417 X-RootMTR: 20170302073436epcas2p1ee2d6d723bc7b0865e11243777a08417 References: <1488440005.4187177.897775384.2538F781@webmail.messagingengine.com> Isn't the same problem showing up here? Watch closely, I may be missing the point... foo=a value=ac % print ${value//[${foo}]/x} xc That's OK, only the a is replaced by an x. % print ${value//[b-z]/x} ax That's OK, only the c is replace by an x. % print ${value//[${foo}b-z]/x} xc Oops, should be a combination of the above effects, giving xx, which is what you get if you expand the ${foo} by hand... % print ${value//[ab-z]/x} xx To show it really is the dash... % value=ab % print ${value//[${foo}b-z]/x} xx Unfortunately tracking down where this came in isn't much help as we need to be able to get the correct overall effect of either Dash or literal '-' in all cases, rather than just moving the problem around. I wonder, however, if we're close to the point where we simply tokenise it when it's not quoted and try to track down all the places where we need to untokenise it. There have been more fixes to untokenisation since the previous attempt to guess where we need to tokenise went in. pws