Re: Specifying files with spaces in the name to clojure.contrib.command-line

2009-02-14 Thread Chouser
On Sat, Feb 14, 2009 at 3:56 PM, Kevin Albrecht wrote: > > P.S. Also, unrelated to this problem, the following line in the > example code in command_line.clj is missing the vector surrounding the > bindings of the doseq: > > :else (doseq filename filenames Fixed, thanks. --Chouser --~--

Re: Specifying files with spaces in the name to clojure.contrib.command-line

2009-02-14 Thread Kevin Albrecht
Ah, this was the problem, thanks. Michael Wood wrote: > java -server -cp "${CLASSPATH}" clojure.main "${script}" "$@" > > The quotes are necessary around the $@, otherwise you will get the > symptoms you are seeing. --~--~-~--~~~---~--~~ You received this message b

Re: Specifying files with spaces in the name to clojure.contrib.command-line

2009-02-14 Thread Michael Wood
On Sat, Feb 14, 2009 at 10:56 PM, Kevin Albrecht wrote: > > This utility is very useful, but it seems unable to handle passing in > file names with spaces in them. > > Example program: > > ;- begin args.clj > (ns args > (:use clojure.contrib.command-line)) > > (with-command-line *command

Specifying files with spaces in the name to clojure.contrib.command-line

2009-02-14 Thread Kevin Albrecht
This utility is very useful, but it seems unable to handle passing in file names with spaces in them. Example program: ;- begin args.clj (ns args (:use clojure.contrib.command-line)) (with-command-line *command-line-args* "args -- test of args" [filenames] (doseq [filename filen