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

Re: how to?



> Date: Tue, 27 Aug 2002 19:20:20 +0200
> From: Phil Pennock <Phil.Pennock@xxxxxxxxxxx>
> To: zsh-users@xxxxxxxxxx
> 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



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