Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2002 18:37:24 +0100 (BST)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        uwi mAn <uwiman3k@hotmail.com>
Cc:        questions@freebsd.org
Subject:   Re: rehash
Message-ID:  <Pine.GSO.4.44.0206061832300.29324-100000@mail.ilrt.bris.ac.uk>
In-Reply-To: <F192EI5NuGni9D6v8Ls00015d3d@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 6 Jun 2002, uwi mAn wrote:

> Why I must rehash everytime I install something?
> is it a csh-specific feature only?

csh-derived shells keep a list of executable files on your PATH and use
those to locate the right executable when you type a command, rather
than searching every time you type a command. On a stable system with no
new executables being installed, this is generally reasonable behaviour.

You can turn off this behaviour by using the builtin command "unhash",
which you can stick in your ~/.cshrc or ~/.tcshrc if you like.


-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk
HP-unix: Open Sauce product, available in 57 distributions.


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.GSO.4.44.0206061832300.29324-100000>