Date: Sat, 29 Nov 2003 20:54:30 -0600 (CST) From: Lars Eighner <eighner@io.com> To: "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz> Cc: freebsd-questions@freebsd.org Subject: Re: how 'which'? Message-ID: <20031129204956.S2115@pearl.io.com> In-Reply-To: <3FC94748.7080802@daleco.biz> References: <6.0.0.22.0.20031129190336.035bc908@pop.face2interface.com> <3FC94748.7080802@daleco.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
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@io.com -finger for geek code- http://www.io.com/~eighner/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031129204956.S2115>