Date: Sun, 17 Dec 2000 21:14:50 -0500 (EST) From: Tim McMillen <timcm@umich.edu> To: 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: <Pine.SOL.4.10.10012172112130.3899-100000@frogger.gpcc.itd.umich.edu> In-Reply-To: <Pine.BSF.4.21.0012172106410.22802-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.10.10012172112130.3899-100000>