Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: listing all executables matching 'foo'
- X-seq: zsh-users 2522
- From: James Cribb <jamesc@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: listing all executables matching 'foo'
- Date: Thu, 26 Aug 1999 13:59:37 +1000
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990823152219.I32224@xxxxxx> <19990823233551.B31064@xxxxxxxxxxxxxxxxxx> <19990823160716.M32224@xxxxxx> <19990823110321.A1724@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <19990825154631.C2803@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: jamesc@xxxxxxxxxx
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".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author