One REPL to bind them all?

后端 未结 3 615
醉话见心
醉话见心 2020-12-28 14:22

I\'d like to know if there is a REPL which is not language-specific. I spend a lot of time dipping in and out of REPLs (mainly for Clojure, Scala and Haskell), and the bund

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-28 15:10

    Bash doesn't know anything about C-r: it uses readline, which does that, as well as up-arrow history, for it. It sounds like the REPL you're looking for is readline? Just prefix the command you want REPL-like behavior from with rlwrap (install it if you don't have it - it's great), and you should be good to go.

    $ rlwrap java -jar clojure.jar
    

提交回复
热议问题