Discussion: 'which` command
Afficher un message
Vieux 24/07/2007, 14h40   #8
Geoff Clare
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 'which` command

Janis wrote:

>> Well, i like "which" because i can do this:
>> vi `which somescript.sh`
>> In our env some of the stuff is in rather long paths.

>
> Either have a look at possible options to 'type' in your environment
> to omit the prefix string "<prg> is [cached] ..." in the output, or,
> since you use ksh, have a look at the 'whence' command instead.


Or just use "command -v" which is POSIX/SUS standard.

--
Geoff Clare <netnews@gclare.org.uk>
  Réponse avec citation
 
Page generated in 0,05147 seconds with 9 queries