Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] don't treat alone grouping pattern as glob qualifier
- X-seq: zsh-workers 31998
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] don't treat alone grouping pattern as glob qualifier
- Date: Sun, 17 Nov 2013 10:40:41 -0800
- In-reply-to: <20131117052423.GA20827@localhost.localdomain>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20131117052423.GA20827@localhost.localdomain>
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 ...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author