From owner-freebsd-questions@FreeBSD.ORG Sat Nov 29 18:56:06 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C2CA16A4CE for ; Sat, 29 Nov 2003 18:56:06 -0800 (PST) Received: from solomon.io.com (solomon.io.com [199.170.88.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18ADB43F3F for ; Sat, 29 Nov 2003 18:56:05 -0800 (PST) (envelope-from eighner@io.com) Received: from io.com (aus-as2-058.io.com [199.170.89.58]) by solomon.io.com (8.12.8/8.12.8) with SMTP id hAU35EUF029962; Sat, 29 Nov 2003 21:05:15 -0600 Date: Sat, 29 Nov 2003 20:54:30 -0600 (CST) From: Lars Eighner To: "Kevin D. Kinsey, DaleCo, S.P." In-Reply-To: <3FC94748.7080802@daleco.biz> Message-ID: <20031129204956.S2115@pearl.io.com> References: <6.0.0.22.0.20031129190336.035bc908@pop.face2interface.com> <3FC94748.7080802@daleco.biz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Marty Landman cc: freebsd-questions@freebsd.org Subject: Re: how 'which'? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2003 02:56:06 -0000 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