From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1178 invoked from network); 27 Nov 2000 18:21:59 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 Nov 2000 18:21:59 -0000 Received: (qmail 13189 invoked by alias); 27 Nov 2000 18:21:38 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3531 Received: (qmail 13180 invoked from network); 27 Nov 2000 18:21:30 -0000 From: "Bart Schaefer" Message-Id: <1001127173349.ZM17136@candle.brasslantern.com> Date: Mon, 27 Nov 2000 17:33:49 +0000 In-Reply-To: <20001127070327.J428@sophix.uklinux.net> Comments: In reply to "Calum Selkirk" "Re: _tar -*Cf*?" (Nov 27, 7:03am) References: <20001125054306.E5448@sophix.uklinux.net> <1001126022006.ZM15650@candle.brasslantern.com> <20001127070327.J428@sophix.uklinux.net> X-Mailer: Z-Mail (5.0.0 30July97) To: "Calum Selkirk" , zsh-users@sunsite.auc.dk Subject: Re: _tar -*Cf*? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 27, 7:03am, Calum Selkirk wrote: } Subject: Re: _tar -*Cf*? } } Bart Schaefer [schaefer@candle.brasslantern.com] wrote: } } > On Nov 25, 5:43am, Calum Selkirk wrote: } > } > > elif [[ ( CURRENT -gt 2 && "$words[CURRENT-1]" = -*Cf*) || } > > ( CURRENT -eq 3 && "$words[2]" = *Cf* ) ]]; then } > > } > > I'm pretty new to zsh so forgive my ignorance, but shouldn't this be -C } > > rather than -Cf to get commpletion on the --directory to change to? } > } > It should probably be *C*f*. } } Thats what i had originally thought .. but *C*f* would also produce the } completion on _tar_archive and not _file -/ (which would be my expected } behavior from the -C switch). How about [^f]#C* instead? The important thing is that *f*C* should NOT match. } I'm planning writting a basic intro (that would only cover 3.1.9 as that } is all i'm familiar with) Have you had a look at http://sunsite.dk/zsh/ ? In particular, look at http://sunsite.dk/zsh/Guide/zshguide.html by Peter Stephenson . He might be interested in contributions. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net