From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4332 invoked from network); 8 May 2000 18:13:19 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 May 2000 18:13:19 -0000 Received: (qmail 26375 invoked by alias); 8 May 2000 18:13:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11269 Received: (qmail 26357 invoked from network); 8 May 2000 18:13:13 -0000 Date: Mon, 08 May 2000 19:12:45 +0100 From: Peter Stephenson Subject: Re: Assorted _arguments arguments In-reply-to: "Your message of Mon, 08 May 2000 17:58:14 -0000." <1000508175816.ZM17624@candle.brasslantern.com> To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Message-id: <0FU9004JE6L9UK@la-la.cambridgesiliconradio.com> Content-transfer-encoding: 7BIT 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 Cambridge Silicon Radio, Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070