From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22061 invoked by alias); 18 Nov 2013 00:41:09 -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: 32005 Received: (qmail 2693 invoked from network); 18 Nov 2013 00:41:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Date: Mon, 18 Nov 2013 08:30:43 +0800 From: Han Pingtian To: zsh-workers@zsh.org Subject: Re: [PATCH] don't treat alone grouping pattern as glob qualifier Message-ID: <20131118003043.GA2709@localhost.localdomain> References: <20131117052423.GA20827@localhost.localdomain> <131117104041.ZM30561@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <131117104041.ZM30561@torch.brasslantern.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13111800-0320-0000-0000-000001C04695 On Sun, Nov 17, 2013 at 10:40:41AM -0800, Bart Schaefer wrote: > On Nov 17, 1:24pm, Han Pingtian wrote: > } > } Looks like the alone grouping pattern (s*) is treated as qualifier. > > That would be correct according to the documentation ... anything in > parens that can't be distinguished from a qualifier, is a qualifier, > unless you unsetopt BARE_GLOB_QUAL. > > "A glob subexpression that would normally be taken as glob qualifiers, > for example `(^x)', can be forced to be treated as part of the glob > pattern by doubling the parentheses, in this case producing `((^x))'." > Thanks. > However, I can't immediately think of any reason why a paren should be > considered part of a "trailing set" when nothing precedes it ... Yes, because there is nothing before (s*), it wouldn't be treated as qualifiers, I think.