Date: Mon, 18 Dec 2000 05:53:21 +0100 From: Cliff Sarginson <cliff@raggedclown.net> To: Tim McMillen <timcm@umich.edu>, Dru <genisis@istar.ca> Cc: Otter <otterr@telocity.com>, Drew Tomlinson <drewt@writeme.com>, "FreeBSD Questions (E-mail)" <freebsd-questions@freebsd.org> Subject: Re: Command to Re-Read Paths? Message-ID: <00121805532100.01654@buffy> In-Reply-To: <Pine.SOL.4.10.10012172112130.3899-100000@frogger.gpcc.itd.umich.edu> References: <Pine.SOL.4.10.10012172112130.3899-100000@frogger.gpcc.itd.umich.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00121805532100.01654>