Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Assorted _arguments arguments
- X-seq: zsh-workers 11269
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Assorted _arguments arguments
- Date: Mon, 08 May 2000 19:12:45 +0100
- In-reply-to: "Your message of Mon, 08 May 2000 17:58:14 -0000." <1000508175816.ZM17624@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart wrote:
> On a similar topic, can anyone think of a way to write an exclusive-or
> glob pattern? E.g. I want to match ChangeLog if that exists, or Changes
> if that exists, but neither if both exist?
I don't think this is possible. The globbing code matches files
separately. It would have to look at the list of files already matched to
know whether to reject both that and the new one, which is extremely
hairy. Obviously you can do it with arrays and things.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author