Daily Archives: September 2, 2009

How To Determine Directory of Sourced Bash Script

Sourcing a script can be useful for exporting variables in the current shell. However, you can’t use “dirname $0″ to get the directory of the script. Here’s how to get the same effect of dirname, but still allowing you to … Continue reading

Posted in Linux | Leave a comment