Info on java4shell: https://github.com/babashka/babashka/issues/2291 tl;dr: (newest) bb is not affected
@lorilynjmiller made a java4shell-check bb script that checks all of your local JDKs for risk:
bbin install
https://gist.github.com/lambduhh/8e155ce1e3ebc7afb7cbb5fa9dbd38d6#file-java4shell-check-bbHmm, weirdly that script is failing to read /proc/cpuinfo on my system, which I can reproduce in the Babashka REPL:
Babashka v1.13.229
Type :repl/help for help
user=> (slurp "/proc/cpuinfo")
java.io.IOException: Invalid argument [at <repl>:1:1]
While (in the same REPL):
user=> (require '[babashka.process :refer [shell]])
nil
user=> (:out (shell {:out :string} "cat /proc/cpuinfo")))
"processor\t: 0\nvendor_id\t: GenuineIntel\n
<SNIP>Seems to be a known issue: https://stackoverflow.com/questions/8933393/slurping-proc-cpuinfo-with-clojure
This can work:
$ bb
Babashka v1.13.229
Type :repl/help for help
user=> (require '[babashka.fs :as fs])
nil
user=> (fs/read-all-lines "/proc/cpuinfo")thanks for the repost and feedback ππΌ
β’ the script now reads /proc/cpuinfo with fs/read-all-lines. If the read fails anyway, it reports βCPU features not readableβ instead of crashing.
β¦ revision b85fbcf): https://gist.github.com/lambduhh/8e155ce1e3ebc7afb7cbb5fa9dbd38d6
Such a great picture. Let the memes begin!