From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29532 invoked by alias); 8 Mar 2017 19:21:29 -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: 40797 Received: (qmail 1479 invoked from network); 8 Mar 2017 19:21:29 -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(-0.0/5.0):. Processed in 1.225748 secs); 08 Mar 2017 19:21:29 -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=-0.0 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: [^ax-y] doesn't work but [^x-ya] does To: Peter Stephenson , Zsh hackers list References: <1488440005.4187177.897775384.2538F781@webmail.messagingengine.com> <20170302104710.6eed8ece@pwslap01u.europe.root.pri> <1488453733.41855.897947392.73E9E4B0@webmail.messagingengine.com> <20170302115308.5a8fccfa@pwslap01u.europe.root.pri> <170304152143.ZM30786@torch.brasslantern.com> <20170306112830.22d68831@pwslap01u.europe.root.pri> <20170307105149.30148b02@pwslap01u.europe.root.pri> From: Martijn Dekker Message-ID: Date: Wed, 8 Mar 2017 19:12:17 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170307105149.30148b02@pwslap01u.europe.root.pri> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Op 07-03-17 om 10:51 schreef Peter Stephenson: > On Mon, 6 Mar 2017 11:28:30 +0000 > Peter Stephenson wrote: >> I may just commit this and see how it works. > > I've done so. > > It's entirely possible there will be more cases where a Dash token is > encountered where the shell expects a '-' and consequently there's an > error. These all ought to be fixable by simple local tests. Commit f3f8537c breaks unquoted $-: $ Src/zsh -c 'echo $-' (empty output) $ Src/zsh -c 'echo "$-"' 569X $ Src/zsh -u -c 'echo $-' zsh:1: : parameter not set $ Src/zsh -u -c 'echo "$-"' 569Xu $ Src/zsh -c 'echo ${-}' (empty output) $ Src/zsh -c 'echo "${-}"' 569X $ Src/zsh -u -c 'echo ${-}' (empty output) $ Src/zsh -u -c 'echo "${-}"' 569Xu