From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19127 invoked from network); 19 Sep 2000 02:15:15 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 Sep 2000 02:15:15 -0000 Received: (qmail 29950 invoked by alias); 19 Sep 2000 02:14:41 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3442 Received: (qmail 29943 invoked from network); 19 Sep 2000 02:14:39 -0000 From: "Bart Schaefer" Message-Id: <1000919021428.ZM30137@candle.brasslantern.com> Date: Tue, 19 Sep 2000 02:14:27 +0000 In-Reply-To: <200009182207.SAA06782@soup.ads.apexinc.com> Comments: In reply to "E. Jay Berkenbilt" "Re: completion with globbing, take 2" (Sep 18, 6:07pm) References: <200009171750.NAA05647@soup.ql.org> <1000917184320.ZM19505@candle.brasslantern.com> <200009172303.TAA07756@soup.ql.org> <200009180017.UAA08871@soup.ql.org> <000001c02136$b9c1f2a0$21c9ca95@mow.siemens.ru> <000701c0213d$2434b6d0$21c9ca95@mow.siemens.ru> <000001c02157$2ceaa360$21c9ca95@mow.siemens.ru> <1000918172840.ZM29857@candle.brasslantern.com> <200009182207.SAA06782@soup.ads.apexinc.com> X-Mailer: Z-Mail (5.0.0 30July97) To: "E. Jay Berkenbilt" Subject: Re: completion with globbing, take 2 Cc: zsh-users@sunsite.auc.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 18, 6:07pm, E. Jay Berkenbilt wrote: } Subject: Re: completion with globbing, take 2 } } > Does it? What happens when you complete a pattern that matches only } > directories? } } Well, in fact, I never do this with rmdir. [...] } I really use this with cvs add and cvs rm where it is great. So you have it restricted by style to :completion::complete:cvs* or something like that? I could see where that would be useful, but I wouldn't want it in context :completion:* ... I generally do the same thing by using accept-and-menu-complete. Just hit tab once, get the first completion, and then hit ^X TAB until all the files have appeared. That way I can selectively skip any that I don't want to add, rather than inserting them all and then having to back up and delete some. bindkey '^X^I' accept-and-menu-complete } Nice to know. So I guess zsh functions are like lisp and perl -- the } value of the last statement is the return value -- but with the } additional feature that return with no arguments returns the last } value.... That's true of all Bourne-shell-like shells, actually. At least, those that have functions. -- 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