PATH problems

Stephen Bailey (bailey@physics.harvard.edu)
Fri, 15 Oct 1999 13:38:58 -0400 (EDT)

OK, so my less problem was a PATH problem. Something is
inserting /usr/local/bin into my path before /usr/bin.
It's driving me batty because I get a different path if
I ssh into the machine vs. popping up an xterm. From ssh
I get:

harv8:/home/bailey> echo $PATH
/usr/bin:/bin:/usr/bin:/usr/X11R6/bin

I don't know why /usr/bin is there twice. If I pop up an
xterm, I get:

harv8:/home/bailey> echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin

I don't change my path in my .cshrc file and I don't have a .login
or .tcshrc file. The only other place I know to look is
in /etc/csh.cshrc which has:

if ($?PATH) then
setenv PATH "${PATH}:/usr/X11R6/bin"
else
setenv PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
endif

But my PATH already exists with /usr/local/bin at the start
when this is executed.

Sure, I could just set my path to what I want it to be in
.cshrc. But I'd rather fix whatever the fundamental problem
is so that other users don't experience this too when using
this machine or when we upgrade the rest of the machines in
our cluster.

Any ideas? Thanks,

Stephen