Hey everyone, graalvm binary has system property called underscore (e.g. (System/getProperty "_")) which contains full path to running binary. Is this safe to use through different platforms? Tried to find documentation regarding this property, didn’t find.
@armed This is probably more reliable:
$ clojure -M -e '(.get (.command (.info (java.lang.ProcessHandle/current))))'
"/Users/borkdude/Downloads/graalvm-ce-java11-22.2.0/Contents/Home/bin/java"
$ bb -e '(.get (.command (.info (java.lang.ProcessHandle/current))))'
"/Users/borkdude/dev/babashka/bb"ah, interesting, thanks.