From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16516 invoked from network); 27 Aug 2002 18:01:29 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 27 Aug 2002 18:01:29 -0000 Received: (qmail 22891 invoked by alias); 27 Aug 2002 18:01:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5299 Received: (qmail 22869 invoked from network); 27 Aug 2002 18:01:12 -0000 Date: Tue, 27 Aug 2002 20:00:32 +0200 From: Roman Neuhauser To: zsh-users@sunsite.dk Subject: Re: how to? Message-ID: <20020827180032.GO21595@freepuppy.bellavista.cz> Mail-Followup-To: zsh-users@sunsite.dk References: <20020823133510.2B8EC5B5@mercea.net> <20020827103427.GJ21595@freepuppy.bellavista.cz> <20020827192020.A7905@globnix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020827192020.A7905@globnix.org> User-Agent: Mutt/1.5.1i > Date: Tue, 27 Aug 2002 19:20:20 +0200 > From: Phil Pennock > To: zsh-users@sunsite.dk > Subject: Re: how to? > > On 2002-08-27 at 12:34 +0200, Roman Neuhauser wrote: > > roman@freepuppy ~/tmp/foo 1030:0 > ls > > bar.c bar.o baz.c baz.o foo.c > > roman@freepuppy ~/tmp/foo 1031:0 > ls *.c~f* > > bar.c baz.c > > roman@freepuppy ~/tmp/foo 1032:0 > ls *.c~*.o > > bar.c baz.c foo.c > > roman@freepuppy ~/tmp/foo 1033:0 > > > > > could anyone explain this to me? > > The extended glob used excludes those filenames which match the second > glob. The first one excludes filenames starting with "f". The second > excludes those ending ".o". > > If a filename ends ".c" then it can not also, at the same time, end > ".o". > > This says nothing about whether or not there exists a different filename > which has the same basename, but ends ".o" instead of ".c". ah, now it's clear. thanks! -- FreeBSD 4.6-STABLE 7:59PM up 7 days, 1:52, 17 users, load averages: 0.00, 0.00, 0.00