From owner-freebsd-questions Sun Dec 17 18:14:54 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 18:14:53 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from berzerk.gpcc.itd.umich.edu (berzerk.gpcc.itd.umich.edu [141.211.2.162]) by hub.freebsd.org (Postfix) with ESMTP id C83CD37B400 for ; Sun, 17 Dec 2000 18:14:52 -0800 (PST) Received: from frogger.gpcc.itd.umich.edu (smtp@frogger.gpcc.itd.umich.edu [141.211.2.144]) by berzerk.gpcc.itd.umich.edu (8.8.8/4.3-mailhub) with ESMTP id VAA26879; Sun, 17 Dec 2000 21:14:51 -0500 (EST) Received: from localhost (timcm@localhost) by frogger.gpcc.itd.umich.edu (8.8.8/5.1-client) with ESMTP id VAA06505; Sun, 17 Dec 2000 21:14:51 -0500 (EST) Date: Sun, 17 Dec 2000 21:14:50 -0500 (EST) From: Tim McMillen X-Sender: timcm@frogger.gpcc.itd.umich.edu To: Dru Cc: Otter , Drew Tomlinson , "FreeBSD Questions (E-mail)" Subject: RE: Command to Re-Read Paths? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 17 Dec 2000, Dru wrote: > On Sun, 17 Dec 2000, Otter wrote: > > > isn't "rehash" just a csh command? or does it work on all shells? > > -Otter > > > Yes. But the original poster didn't say he had changed the default > csh/tcsh shell for root to something else. If he had just installed > software, he did it as root from root's shell :) And csh (and tcsh) are the only ones that keep the hash table of commands. The others just search through the path. As I was informed the last time I asked about rehash, csh maintains this hash table to make command execution slightly more efficient by speeding the finding of the executeable. Other shells don't do this. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message