How to get path to bash script independent of whether it is sourced from bash or from another script?
4162
How can I get the source directory of a Bash script from within the script itself?
140921
How can I get another application's installation path programmatically?
133631
how to source a shell script [environment variables] in perl script without forking a subshell?
83732
Converting relative path to absolute path without symbolic link
89409
How might I get the script filename from within that script?
37703
How can I check if a directory exists in a Bash shell script?
89519
Get relative path from comparing two absolute paths
31185
Get path of current script when executed through a symlink
86627
Find where python is installed (if it isn't default dir)
84333
Bash scripts ran from from gnome/nautilus don't have environment variables
41856
How to detect the desktop environment in a bash script?
83599
Refer to a file under the same directory of a script found in $PATH
51749
What's the best way to determine the location of the current PowerShell script?
16368
How to get the path of a running JAR file?
2267
How to detect if a script is being sourced
154472
Can I export a variable to the environment from a bash script without sourcing it?
135143
Use system command instead of Bash builtin without specifying the full path