On Jan 16, 9:06 am, Timothy Pratley <timothyprat...@gmail.com> wrote:
> +1 (and a windows .bat file for the unwashed)

+ 1 too.

> I strongly suggest that the script name needs to be retained in
> *command-line-args*.
> ie: clj myscript.clj 1 2

No, please don't, or it would not be coherent with the way java
handles it.

Maybe for scripts a global var such as *script-name* could be set
automatically ?

> *command-line-args* should be ("myscript.clj" 1 2)
> not (1 2) which is the current behavior of your script with the
> current clojure.main
> $0 or argv[0] is really useful and widely expected to exist.
>
> I suppose this could be overcome by $1 $@, however that is not quite
> correct in the case where the user might pass in additional options
> clj --some-option myscript.clj 1 2
> so I believe clojure.main itself needs modification to be correct.
>
> Is clojure.main deprecating clojure.lang.Script? I suppose 
> thathttp://clojure.org/repl_and_mainwill explain all when revealed :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to