Question

What's the difference between Clojure's command line tools clojure and clj?

Answer

clojure is a runner for Clojure.

clj is a wrapper around clojure for interactive REPL use. It uses rlwrap to provide input history (through arrow keys), completion (through tab key), search (through control-R)...

[^1]: https://clojure.org/reference/deps_and_cli#_command_line_tools

[^2]: https://clojure.org/reference/deps_and_cli#_usage

[^3]: https://github.com/hanslub42/rlwrap

Learn

Author

xavi

Reviews
Last
next

Students 1