csh path

Brad Skrbec skrbec at motcid.UUCP
Sat Mar 9 02:47:13 AEST 1991


mostek at 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 at uunet.uu.net          |
------------------------------------------------------------------------------



More information about the Comp.unix.questions mailing list