Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug in handling combination of extended globs and attributes



On Thu, 2 Dec 2010 13:35:43 +0100
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On 2 December 2010 12:25, Klaus Ethgen <klaus+usenet@xxxxxxxxx> wrote:
> > Hello,
> >
> > when I use the following glob:
> > Â print -l *~bla~foo(D.|/)
> >
> > I get a list with only bla excluded. File/Directory foo is still in
> > the result but shouldnt with my understanding.
> 
> Glob qualifier groups are separated by commas (,), not pipes (|). The
> pipe probably makes the () portion be interpreted as a pattern, ie
> you're excluding 'fooD.' and 'foo/' instead of 'foo'.

Er, you're quite right, it does basically work, and there's a test for
it in the test suite, it's just my fiddling with patterns to try it out
that's flaky.

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK




Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom



Messages sorted by: Reverse Date, Date, Thread, Author