(t)c shell problem and ssh

I have recently discovered an annoying problem with some of our Linux boxes (running Opensuse 11.3) that is defying our attempts to resolve.

If I (or anyone else using c shell) log in remotely to 2 of our Opensuse 11.3 machines with ssh, then they cannot run a lot of software. It seems that $PATH is not synchronised with $path and $PATH appears to be read only. Furthermore echo $PATH does not return the same thing as printenv $PATH.

A third machine running Opensuse 11.3 is fine. Also if I log in to these machines on the console, they are fine!

We cannot determine the cause (and solution).

Any ideas?

Andrew :confused:

You might want to try printenv PATH instead of printenv $PATH.

'PATH' and 'path' are different variables, yes. You should only be using PATH to define the PATH.

What do you mean by 'read-only'? If you alter it in the shell itself with export PATH="${PATH}:stuff" does "echo $PATH" show the changes? The changes naturally won't persist next time you login, being defined by your login scripts and not what you type in the shell.