SUMMARY: PATHs using NFS links

From: Jim Fitzmaurice <jpfitz_at_fnal.gov>
Date: Thu, 21 Oct 1999 16:04:07 -0500

Thanks to all,
        I received numerous responses too many to list. (And they are still flowing
in.)

        They all said basically the same thing. I was right, but it not called a
buffer, csh and it's derivatives use a hash table to store the contents of
the PATH directories. The command "rehash" will rebuild the hash table which
is shorter than "setenv PATH $PATH", which apparently had the same effect
buy tricking the shell into thinking your changing the path causing it to
rebuild the hash table. Thanks again to all. My original question is below.

Thanks again!

Jim Fitzmaurice
jpfitz_at_fnal.gov

UNIX is very user friendly, It's just very particular about who it makes
friends with.


Hello,
        We are experiencing an unusual problem. First of all we have a 4100 Alpha
servers running 4.0D PK3. We have an AdvFS called /projects and developers
working on projects in this directory like to add directories to their $PATH
to test commands. The problem occurs a when new command is added to one of
these directories. When the developer logs in everything works as expected,
and commands in the PATH are found and run. But when a new command is
created in a directory in the PATH you recieve the error:

        <new_cmd>: not found.

If they have the "." in their PATH and <new-cmd> is in the current
directory, they can run new commands, but if they are outside the directory
where <new_cmd> was created it will not be found.
If you log out then log back in the <new_cmd> will be found and everything
will work normally again. They are in the "tcsh" shell and running "setenv
PATH $PATH" will also resolve the problem and we can see the new commands.
However, this is an annoying work around, and if you add another new
command, you have to do it again.
Has anybody ever seen this? I'm a ksh guy and have never experienced this
before, could this be a tcsh thing? It almost like command listings in the
PATH are stored in a buffer somewhere and you can't find new commands until
the buffer is updated.

Jim Fitzmaurice
jpfitz_at_fnal.gov

UNIX is very user friendly, It's just very particular about who it makes
friends with.
Received on Thu Oct 21 1999 - 21:03:15 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT