babashka 2026-07-21

I have some code using bb's repl functionality, but it doesn't seem to work anymore. I'm pretty sure it did before. It seems the :eval option is a noop

bb -e '(clojure.main/repl :eval (fn [cmd] (println "CMD" (pr-str cmd))))'

Babashka v1.12.218
Type :repl/help for help
user=> 22
22
user=>
With the above every command should be printed, right? I also tried throwing an exception, but it doesn't seem to do anything.

can you make a github issue? I did touch that code when I made the jline repl

I could not detect recent changes in the https://github.com/babashka/babashka/blame/master/src/babashka/impl/clojure/main.clj#L93but maybe i'm looking at the wrong spot

it's in babashka.impl.repl

👍 1

fix welcome