Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!ftpbox!motsrd!motcid!skrbec From: skrbec@motcid.UUCP (Brad Skrbec) Newsgroups: comp.unix.questions Subject: Re: csh path Keywords: csh path environment variable Message-ID: <4805@melon5.UUCP> Date: 8 Mar 91 16:47:13 GMT References: <5965@beryl12.UUCP> Distribution: comp Organization: Motorola Inc., Cellular Infrastructure Div., Arlington Heights, IL Lines: 24 mostek@motcid.UUCP (Frank B. Mostek) writes: >When I add a new image to a bin directory that is included in my path >csh environment variable, I have to "re-setenv" the path variable in >order for the new image to be found. >Why? Is there a way around this? When I add a new tool, I have to >tell everyone to re-source their .cshrc file. But if I update an image >file, then the re-sourcing is not necessary. >-- I believe the problem you are describing has to do with the path hash table. New entries added to directories in the path are not automatically added to the hash table. To effect this change, you can either re-source the your .cshrc (which just re-establishes your path, thus causing the table to be created), or you can just type "rehash" at the command line, which creates the table anew. ------------------------------------------------------------------------------ | Brad Skrbec | "For it is the doom of men that they forget." | | Motorola Cellular | -- Merlin | | Arlington Heights, IL | UUCP: uunet!motcid!skrbec | | | Internet: motcid!skrbec@uunet.uu.net | ------------------------------------------------------------------------------