On Tue, Jul 13, 2010 at 1:55 PM, Paul Richards <paul.richa...@gmail.com> wrote: > I'm new to Clojure, and I've found it possible to make Clojure scripts > executable by adding '#!/usr/bin/env clj' as the first line (and > 'chmod +x' of course). > > E.g. My sample script: > > #!/usr/bin/env clj > > (println "Hello World") > > This seems like a very convenient way to dabble with Clojure, yet I > have not seen it suggested anywhere. Is this method discouraged?
Since there's no standard shell launcher for clj[1], you don't really have a good idea of how it will work, especially when you need to use more than one file. Once classpath issues come into play things become a lot more complicated. You would need something like Hashdot for that: http://hashdot.sourceforge.net/ -Phil [1] According to a ticket in assembla, this may be fixed post 1.2, which I'm glad to see. -- 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 Note that posts from new members are moderated - please be patient with your first post. 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