From owner-freebsd-questions Sun Dec 17 20:54:39 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 20:54:37 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 92ABC37B400 for ; Sun, 17 Dec 2000 20:54:36 -0800 (PST) Received: from [212.238.77.116] (helo=buffy.raggedclown) by post.mail.nl.demon.net with smtp (Exim 3.14 #4) id 147sJb-0002XY-00; Mon, 18 Dec 2000 04:54:29 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by buffy.raggedclown (8.10.2/8.10.2) id eBI4rMd01761; Mon, 18 Dec 2000 05:53:22 +0100 From: Cliff Sarginson Date: Mon, 18 Dec 2000 05:53:21 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="US-ASCII" Cc: Otter , Drew Tomlinson , "FreeBSD Questions (E-mail)" To: Tim McMillen , Dru References: In-Reply-To: Subject: Re: Command to Re-Read Paths? MIME-Version: 1.0 Message-Id: <00121805532100.01654@buffy> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday 18 December 2000 03:14, Tim McMillen wrote: > 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. > bash does, it has the "hash" command and usually an alias of rehash to "hash -r" Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message