how 'which'?

Lars Eighner eighner at
Sat Nov 29 18:56:06 PST 2003

On Sat, 29 Nov 2003, Kevin D. Kinsey, DaleCo, S.P. wrote:

> # which joe
> joe:
> #rehash
> #which joe
> joe: /usr/local/bin/joe
> You must rebuild the shell's list of executables
> after an install, using 'rehash' (at least in /bin/csh
> this is true....)

Evident sh and bash use the real which command, which actually
searches the path every time it is invoked.  To bypass the
builtin, give the actual path to which, which accorting
to which which is /usr/bin/which .

Lars Eighner
eighner at -finger for geek code-
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

More information about the freebsd-questions mailing list