11-25-2001
60,
1
Join Date: Nov 2001
Last Activity: 11 February 2002, 9:50 AM EST
Posts: 60
Thanks Given: 0
Thanked 1 Time in 1 Post
When using setenv in csh, do not use =. The syntax is
setenv ENV_VAR value
where ENV_VAR is any environment variable you want to set (i.e. JAVA_HOME, etc.). I've always used set to set the PATH variable in csh. The syntax for set is
set PATH=( . . . )
That said, unsetenv should remove the environment variable from the shell environment completely. If you just want to reset the value, reissue the setenv command with the value you want to use for each environment variable.
Hope this helps.