From owner-freebsd-questions Sun Nov 18 10:57:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 921D137B425 for ; Sun, 18 Nov 2001 10:57:17 -0800 (PST) Received: from [212.238.77.116] (helo=buffy.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 165X7z-0000ED-00 for questions@FreeBSD.ORG; Sun, 18 Nov 2001 18:57:15 +0000 Received: by tanya.raggedclown.net (Postfix on SuSE Linux 7.3 (i386), from userid 500) id 2A57210FE; Sun, 18 Nov 2001 19:30:30 +0100 (CET) Date: Sun, 18 Nov 2001 19:30:30 +0100 From: Cliff Sarginson To: questions@FreeBSD.ORG Subject: Re: Is root's search path special? Message-ID: <20011118193030.A1220@raggedclown.net> References: <200111170949.fAH9nic21507@lv.raad.tartu.ee> <029301c16f52$bf8e9b00$0a00000a@atkielski.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <029301c16f52$bf8e9b00$0a00000a@atkielski.com> User-Agent: Mutt/1.3.22.1i 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 No, it is not so very obvious is it .. lol. The hashing is done to speed up finding the file in question. What is slightly odd is that as far as I know nobody has considered that the shell(s) could optionally revert to normal path seaching if a hashed filepath is not found. -- Regards Cliff On Sat, Nov 17, 2001 at 11:29:25AM +0100, Anthony Atkielski wrote: > Thanks. Such a requirement would not have occurred to me spontaneously. > > ----- Original Message ----- > From: "Toomas Aas" > To: ; ; "Anthony Atkielski" > > Sent: Saturday, November 17, 2001 10:48 > Subject: Re: Is root's search path special? > > > > Hi Anthony! > > > > On 17 Nov 01 at 9:32 you wrote: > > > > > > > What does "rehash" do? The man page is no help. > > > > >From 'man tcsh': > > > > rehash : > > > > Causes the internal hash table of the contents of the directories > > in the path variable to be recomputed. This is needed if new > > commands are added to directories in path while you are logged > > in. This should be necessary only if you add commands to one of > > your own directories, or if a systems programmer changes the > > contents of one of the system directories. Also flushes the > > cache of home directories built by tilde expansion. > > -- > > Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ > > * Coffee -- n., a person who is coughed upon. > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message