From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11709 invoked from network); 23 Aug 1999 15:04:10 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Aug 1999 15:04:10 -0000 Received: (qmail 10934 invoked by alias); 23 Aug 1999 15:03:44 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2504 Received: (qmail 10925 invoked from network); 23 Aug 1999 15:03:44 -0000 Date: Mon, 23 Aug 1999 11:03:21 -0400 From: Sweth Chandramouli To: zsh-users@sunsite.auc.dk Subject: Re: cd directory completion? Message-ID: <19990823110321.A1724@cj952583-b.alex1.va.home.com> Mail-Followup-To: zsh-users@sunsite.auc.dk References: <19990823152219.I32224@hp.com> <19990823233551.B31064@drizzt.ihug.com.au> <19990823160716.M32224@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <19990823160716.M32224@hp.com> Sender: sweth@cj952583-b.alex1.va.home.com On Mon, Aug 23, 1999 at 04:07:16PM +0200, Dominik Vogt wrote: > > Looks pretty much like the stuff I use. In the end all compctl > configs end up the same :-) But I wonder why you use whence > and where at all (do you?). It's so much easier to just type > > # ls =filename > > and hit TAB :-)) yes, but that returns totally different information, especially in zsh, where which and type are just cosmetic variants of whence--all three thus go through the entire process of command lookup, including functions and builtins. the = syntax just does alias expansion and executable searching via path, while (k/c)sh-style which just does executable searching; these two also thus do not provide any information about whether some command is a function or a builtin, and don't expand aliases/functions/ builtins so that you can quickly see their definition without looking at source files, etc. (i personally think the zsh versions of those commands should mirror the equivalent ksh tools in behaviour (it's sometimes very useful to only do executable searching, for example), but since /bin/which and /bin/type exist and act like the ksh versions, i've just aliased which and type to their executable versions. (of course, then you have issues figuring out just what `alias which=/bin/which ; alias which=$(whence -a which | head -1)' does, but that's what makes playing with your shell fun.)) -- sweth. -- Sweth Chandramouli ; Will Work For Food. *