Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (#cN,M) error, %? doesn't glob
On 24 June 2011 06:12, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jun 24, 4:00am, Mikael Magnusson wrote:
> }
> } The flag tt(LPAR()#c)var(N)tt(,)var(M)tt(RPAR()) can be used anywhere
> } +that the tt(#) or tt(##) operators can be used except in the expressions
> } +`tt((*/)#)' and `tt((*/)##)'
>
> That's not quite right. [[ bar/foo == (*/)(#c1,2)foo ]] does not produce
> a bad pattern error. It's only in glob context where "/" has special
> significance that (*/)# is also a special case.
How's this?
The flag tt(LPAR()#c)var(N)tt(,)var(M)tt(RPAR()) can be used anywhere
that the tt(#) or tt(##) operators can be used except for in the expressions
`tt((*/)#)' and `tt((*/)##)' while globbing, which are handled specially;
it cannot be combined with other globbing flags and a bad pattern error
occurs if it is misplaced.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author