From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16927 invoked by alias); 18 Nov 2013 10:31:51 -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: 32009 Received: (qmail 6335 invoked from network); 18 Nov 2013 10:31:45 -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, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7fee6d000004b2d-81-5289ec8eadb4 Date: Mon, 18 Nov 2013 10:31:40 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [PATCH] don't treat alone grouping pattern as glob qualifier Message-id: <20131118103140.7d9e642a@pwslap01u.europe.root.pri> In-reply-to: <131117104041.ZM30561@torch.brasslantern.com> References: <20131117052423.GA20827@localhost.localdomain> <131117104041.ZM30561@torch.brasslantern.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+NgFuphluLIzCtJLcpLzFFi42I5/e/4Fd2+N51BBnuvClscbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujGuNn1gLPrBV3Gj8zdjAuIe1i5GTQ0LAROLe+Y1sELaYxIV7 64FsLg4hgaWMEmear7NAOMuZJG7eOsPexcjBwSKgKjHlkR1IA5uAocTUTbMZQWwRAXGJs2vP s4DYwgKeEou2TgezeQXsJc5vPMgOYnMKWEncnf8AzBYSyJJ49fcG2GJ+AX2Jq38/MUEcYS8x 88oZRoheQYkfk++BzWEW0JLYvK2JFcKWl9i85i3zBEaBWUjKZiEpm4WkbAEj8ypG0dTS5ILi pPRcQ73ixNzi0rx0veT83E2MkBD8soNx8TGrQ4wCHIxKPLyaYZ1BQqyJZcWVuYcYJTiYlUR4 V9wACvGmJFZWpRblxxeV5qQWH2Jk4uCUamBcUH3x1k+jnOqS6BcxFs+2udf/azDSMNY4e22X YZQUw8L0SnNBsVWTkv6KeHxg/NV27p77OwGZ3Nc6k2oiGWwmrj1swNEssWnjB6c9JUKX/afr T716+p5688YPiUvZznyP+OP20vsB4/mjvGmnBHTK1mSdsF67d+NNv6Djtc3/v3jmfYq/PCFc iaU4I9FQi7moOBEANbFXFR8CAAA= On Sun, 17 Nov 2013 10:40:41 -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))'." > > However, I can't immediately think of any reason why a paren should be > considered part of a "trailing set" when nothing precedes it ... No, and that quote says "*part* of the glob pattern". I think the patch is probably the right way to go. pws