From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,262b8b292699dabd X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-01-08 07:48:11 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!koehler From: koehler@eisner.decus.org (Bob Koehler) Newsgroups: comp.unix.tru64 Subject: Re: "rehash" Question Message-ID: References: <3A59D463.319B23A5@m1a2r3.dfo-mpo.gc.cax> Organization: DECUServe Date: 8 Jan 2001 10:45:46 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 978968748 216.44.122.34 (Mon, 08 Jan 2001 15:45:48 GMT) NNTP-Posting-Date: Mon, 08 Jan 2001 15:45:48 GMT Xref: supernews.google.com comp.unix.tru64:1368 In article <3A59D463.319B23A5@m1a2r3.dfo-mpo.gc.cax>, James Hanway 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