From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23452 invoked from network); 26 Aug 1999 04:01:48 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Aug 1999 04:01:48 -0000 Received: (qmail 4755 invoked by alias); 26 Aug 1999 04:00:33 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2522 Received: (qmail 4720 invoked from network); 26 Aug 1999 04:00:32 -0000 Sender: jamesc@zip.com.au Message-ID: <37C4BBA9.30DD779@zip.com.au> Date: Thu, 26 Aug 1999 13:59:37 +1000 From: James Cribb X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.18 i586) X-Accept-Language: en MIME-Version: 1.0 To: zsh-users@sunsite.auc.dk Subject: Re: listing all executables matching 'foo' References: <19990823152219.I32224@hp.com> <19990823233551.B31064@drizzt.ihug.com.au> <19990823160716.M32224@hp.com> <19990823110321.A1724@cj952583-b.alex1.va.home.com> <19990825154631.C2803@ritz.math.fu-berlin.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sven Guckes wrote: > > _listall () { > if [[ $# = 0 ]] > then > echo "Usage: $0 program" > echo "Example: $0 zsh" > echo "Lists all occurrences of program in the current PATH." > else > for program in `which -a $1` > do > ls -lL $program > done > fi > } > > Comments? I often use "ls -l $^path/foo 2>/dev/null".