Hacker News new | ask | show | jobs
by jan6 2112 days ago
what happened to the simple invocation of `which "$(echo $0)"` ?
1 comments

As the author notes in the 2nd section, that will return the location of the binary in the user path, which is not necessarily the one that is currently running.