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