How may I detect the name of the directory (or better yet the entire path) in which my shell script is run?
4 Answers
This is not as trivial as it looks like. Check out this question and this
3 Comments
Mat Gessel
The question is about determining the script execution directory, but your answer is for determining the name / directory of the script file.
Pekka
@Mat indeed! Must have misunderstood back then. Deleting.
Marco
Could you add a little bit more information? See meta.stackexchange.com/questions/8231/…