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
yep, will do
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
yeah it is probably the readline code. This branch overrides the :eval option with merge https://github.com/babashka/babashka/blob/736fe934a046e80f07aa4fff3eb7d8a034e43d26/src/babashka/impl/repl.clj#L586-L602
fix welcome
cool will do