From owner-freebsd-questions Tue Jan 8 19:31:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id A11AD37B402 for ; Tue, 8 Jan 2002 19:31:51 -0800 (PST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 8A6AF782D0; Wed, 9 Jan 2002 14:01:46 +1030 (CST) Date: Wed, 9 Jan 2002 14:01:46 +1030 From: Greg Lehey To: Joe & Fhe Barbish Cc: FBSD Questions Subject: Re: Where does command rehash live Message-ID: <20020109140146.G77497@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday, 8 January 2002 at 22:19:07 -0500, Joe & Fhe Barbish wrote: > When I issue the rehash from within a script it get > not found. > If I give it's full path I think it will work. > > Problem is I don't know how to find the directory where rehash lives. rehash is a kludge to make the shell forget paths it "knew". It shouldn't be necessary in scripts. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message