On Jul 2, 2009, at 2:00 PM, Mark Volkmann wrote:

I run it with "clj demo.clj foo bar baz" and get this output:

clojure.lang.ArraySeq
2

I get the same output with "clj demo.clj -- foo bar baz".

Why doesn't it output 3?

That depends on your definition of clj.

Here's what I get without using a launcher script:

% java -cp /sq/ext/clojure/clojure.jar clojure.main demo.clj foo bar baz
 clojure.lang.ArraySeq
 3
 (foo bar baz)

(I added (println *command-line-args*) to my demo.clj. You might get some good info by adding it yours as well.)

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to