Results 1 to 1 of 1
I'm writing a csh script which is expected to be sourced. One thing I want to do is find the location in the filesystem of this script. If I was ...
- 04-03-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 1
Getting the Csh Script Name When Being Sourced
I'm writing a csh script which is expected to be sourced. One thing I want to do is find the location in the filesystem of this script. If I was executing the script I could use $0:h, but when you source this script this simply returns "-csh".
Is there a way to find the location of a csh script when you know the script will be sourced, not exected?
Cheers
Blakey


Reply With Quote