Comment 5 for bug 1518106

Revision history for this message
Victor Thompson (vthompson) wrote :

Sourcing in the "export_modules_dir.sh" script causes $0 to be "bash" in gnome-terminal and "/bin/bash" in terminator. When executing the script $0 is ./export_modules_dir.sh as one would expect.

Since the script is being sourced in I don't think it dirname should be used.

http://unix.stackexchange.com/questions/4650/determining-path-to-sourced-shell-script