From owner-freebsd-questions Tue Jan 8 19:24:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 3103637B41C for ; Tue, 8 Jan 2002 19:24:56 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 6751B2B77A; Wed, 9 Jan 2002 04:24:53 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id 817B81A6; Wed, 9 Jan 2002 14:24:47 +1100 (EST) Date: Wed, 9 Jan 2002 14:24:47 +1100 From: Edwin Groothuis To: Joe & Fhe Barbish Cc: FBSD Questions Subject: Re: Where does command rehash live Message-ID: <20020109142447.K823@k7.mavetju.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from barbish@a1poweruser.com on Tue, Jan 08, 2002 at 10:19:07PM -0500 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 Tue, Jan 08, 2002 at 10:19:07PM -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. It's a shell builtin command: [~] edwin@k7>sh [\w] \u@k7>rehash rehash: not found [\w] \u@k7>hash builtin hash builtin alias [~] edwin@k7>bash [~] edwin@k7>hash hits command 1 /bin/sh [~] edwin@k7>rehash bash: rehash: command not found [~] edwin@k7>csh %rehash %hash hash: Command not found. % [~] edwin@k7>tcsh > rehash > hash hash: Command not found. So for c shell you have to use rehash, for bourne shell you have to use hash. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message