I am writing a simple script to source path variable as below:
#!/bin/csh echo "setting path" set path=($path /sbin:/mscc/apps)
However, the path variable does not change and remain the same. The csh shell does not have any errors/warnings.
If I add an invalid line, for example:
setenv PATH $PATH:sbin
It complains "Bad substitute." but the two path above are added. Why is it happening?