export PATH="/usr/ccs/bin:/opt/sfw/bin:/usr/local/sbin:/usr/local/bin:$PATH"
or
setenv PATH="/usr/ccs/bin:/opt/sfw/bin:/usr/local/sbin:/usr/local/bin:$PATH"
Obviously the "which" command is using a different path variable than PATH. I am not an expert in csh (I prefer bash), but I remember reading somewhere that the c-shell had a shell variable path and an environment variable PATH. Just for kicks and giggles, does echo $path give a different response than echo $PATH?
The most commonly used environment
variables, USER, TERM, and PATH, are automatically
imported to and exported from the csh variables user,
term, and path; there is no need to use setenv for
these. In addition, the shell sets the PWD environment
variable from the csh variable cwd whenever the latter
changes.