Is there an equivalent to sh __FILE__ to tell me the path to the executable? POSIX solutions are preferred, bash is acceptable, thanks.
__FILE__
Try using $0 .
$0
To solve bash script
Getting the bash script source directory from the inside
Just a thought:
#!/usr/bin/env bash # "$0" will expand to the name of the script, as called from the command line readlink -f $0