3 ms·
java -jar ~/clojure.jar will give you a REPL. It will be a less convenient REPL though. In particular: * No history support. Try to use the arrow to go back to
by acangiano 16y ago
java -jar ~/clojure.jar will give you a REPL. It will be a less convenient REPL though. In particular:
* No history support. Try to use the arrow to go back to the previous instruction and you'll be greeted by ^[[A.
* No tab completion.
* No exit function.
* No startup file with your customizations.
* No clojure.contrib automatically in your classhpath.
* No simple way to automatically place a list of jars for a given project in the classpath by simply specifying them in a file.
java -jar ~/clojure.jar will do. But this, I believe, is nicer.
- briancarper 16y agoYou can always exit via (System/exit 0), 0 being the return code. `java -cp clojure.jar clojure.main` is the preferred method of starting Clojure rather than using -jar, I think.
- acangiano 16y ago> You can always exit via (System/exit 0), 0 being the return code. That's how I implement the exit function in the article.