Fork me on GitHub
#babashka
<
2021-05-30
>
borkdude21:05:19

TIL:

$ bb -e '(vec (.get (.arguments (.info (java.lang.ProcessHandle/current)))))'
["-e" "(vec (.get (.arguments (.info (java.lang.ProcessHandle/current)))))"]
$ bb -e '(.get (.command (.info (java.lang.ProcessHandle/current))))'
"/Users/borkdude/Dropbox/bin/bb"
(this will be supported in the next one)

kokada01:05:08

Huh... I may have a usage for the second one

souenzzo23:05:50

It almost look like a quine