|
|
|
|
|
by alganet
935 days ago
|
|
I've been using just `V="$(cd -- "$(dirname -- "$0")"; pwd)"` for ages, everything quoted, several OSs, never had an issue with the output that required me to format it again. This approach breaks if you run the script from a symlink. |
|