From: koehler@eisner.decus.org (Bob Koehler)
Subject: Re: "rehash" Question
Date: 8 Jan 2001 10:45:46 -0500 [thread overview]
Message-ID: <Kwll4ta+8LCA@eisner.decus.org> (raw)
In-Reply-To: 3A59D463.319B23A5@m1a2r3.dfo-mpo.gc.cax
In article <3A59D463.319B23A5@m1a2r3.dfo-mpo.gc.cax>, James Hanway <hanwayj@m1a2r3.dfo-mpo.gc.cax> writes:
> This is probably more of a generic UNIX question:
>
> I placed executables into a directory that is on the global PATH for all
> users. Users that are logged in at the time cannot "see" the next
> executables until they either re-login or issue a "rehash" command in
> their csh terminal windows. Why?
>
It depends on the shell. csh hashes the data it finds in the PATH
when it starts, and doesn't really search the PATH unless you tell it
"rehash". Other shells actually search PATH for every command. If a
user was to start a new csh process, that one should pick up the new
command since it will hash on start.
As always in UNIX, it depends.
----------------------------------------------------------------------
Bob Koehler | Computer Sciences Corporation
NASA GSFC Flight Software | Federal Sector, Civil Group
| please remove ".aspm" when replying
prev parent reply other threads:[~2001-01-08 15:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-08 14:53 "rehash" Question James Hanway
2001-01-08 15:45 ` Bob Koehler [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox