Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2001 19:30:30 +0100
From:      Cliff Sarginson <cliff@raggedclown.net>
To:        questions@FreeBSD.ORG
Subject:   Re: Is root's search path special?
Message-ID:  <20011118193030.A1220@raggedclown.net>
In-Reply-To: <029301c16f52$bf8e9b00$0a00000a@atkielski.com>
References:  <200111170949.fAH9nic21507@lv.raad.tartu.ee> <029301c16f52$bf8e9b00$0a00000a@atkielski.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <toomas.aas@raad.tartu.ee>
> To: <y3k@gti.net>; <questions@FreeBSD.ORG>; "Anthony Atkielski"
> <anthony@atkielski.com>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011118193030.A1220>