I have a script that is used to set some env vars in the calling csh shell. Some of those variables depend on the location of the script.
If the file is a proper csh script, I can use $0 to access __FILE__
but if I run the script using source, it just tells me csh or tcsh.
Since I'm using this to set vars in the parent shell, I have to use source.
What to do?