Thanks for your work on polishing up Clojure's entry point situation.
You're welcome. Thanks very much for the feedback. I've applied your patch and tried a series of typical entry point scenarios; all but one of them worked for me. Just for the record, here is what did work: - Using "-h" to get help - Using no options to boot into a repl - Running the repl with jLine - Using "-" to read from stdin - Running a script located based on a filesystem path - Running a script located relative to classpath - Using "-i" to load files before running a script - Using set! in one of these init files - Accessing *command-line-args* from a script
Excellent, that's some fine coverage. I appreciate it! The one that didn't work was booting into a line-numbered repl, which is the setup I use now with trunk Clojure and Clojure-Contrib: java -cp clojure.jar:/Users/mmcgrana/Clojure/jars/clojure-contrib.jar clojure.main -e "(use 'clojure.contrib.repl-ln)" -e "(repl)"
clojure.contrib.repl-ln will need an update if my patch is made part of Clojure. I'm attaching the copy I'm currently using (which has not gone through my usual pre-patch testing process, but is working for me.)
Please let me know whether it works for you.
Thanks!
--Steve
|
repl_ln.clj
Description: Binary data
smime.p7s
Description: S/MIME cryptographic signature