Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in handling combination of extended globs and attributes
- X-seq: zsh-users 15593
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: Klaus Ethgen <klaus+usenet@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: Bug in handling combination of extended globs and attributes
- Date: Thu, 2 Dec 2010 12:52:40 +0000
- In-reply-to: <AANLkTimsvubsBfMC36tAMbKUxR2gPLQE-j31pd6yhJdb@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <slrniff0h9.nh8.klaus+usenet@xxxxxxxxxxxxxx> <AANLkTimsvubsBfMC36tAMbKUxR2gPLQE-j31pd6yhJdb@xxxxxxxxxxxxxx>
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