> I believe they have already added "." to the path, and I have yet to
> figure out how to write a script to take exactly that element OUT of my
> path. (If anyone would like to write one for me, please do!) Needless to
> say, the "." in the path is a good deal easier to put in than to take out.
This is not guaranteed to work in all cases, but offhand, it's a good
starting point:
set path = (`echo $path | sed 's/ . //'`)
On Mon, 18 Jan 1999, Alec Horgan wrote:
> Can't you just copy /etc/csh.cshrc, remove the offending period, and
> then use the modified version as your local .cshrc?
No. /etc/csh.cshrc is run by (t)csh before .cshrc. See the man page for
tcsh(1):
A login shell begins by executing commands from the system
files /etc/csh.cshrc and /etc/csh.login [...]
(tcsh and csh are the same on the new Zoo.)
> It also appears that the "." change has only been applied to the tcsh
> configuration, so using any other shell would circumvent the problem.
Correct. The only thing of concern to us was the default environment.
Once a user changes his shell, he can't expect the default environment. :)
Shawn