Re: Clojure script with shebangoid on windows

2010-05-31 Thread Paul Moore
On 31 May 2010 07:48, alux wrote: > Hello Glen, good hint. Problem and solution reproduced ;-) Yes, it looks like Clojure's (comment ...) form requires the contents of the comment to be syntactically correct Clojure forms. As Glen says, forward slashes seem to work - although personally, I dislik

Re: Clojure script with shebangoid on windows

2010-05-30 Thread alux
Ah! Hello Glen, good hint. Problem and solution reproduced ;-) Thank you, greetings, alux On 31 Mai, 06:00, Glen Stampoultzis wrote: > On 31 May 2010 04:51, Paul Moore wrote: > > > On 30 May 2010 12:31, alux wrote: > > > Small addition, you missed to add the : before eof > > > > replace "go

Re: Clojure script with shebangoid on windows

2010-05-30 Thread Glen Stampoultzis
On 31 May 2010 04:51, Paul Moore wrote: > On 30 May 2010 12:31, alux wrote: > > Small addition, you missed to add the : before eof > > > > replace "goto eof" by "goto :eof" > > Thanks, good catch. ("goto eof" without the colon works on TCC, which > I normally use as my command shell). > > I noti

Re: Clojure script with shebangoid on windows

2010-05-30 Thread Paul Moore
On 30 May 2010 12:31, alux wrote: > Small addition, you missed to add the : before eof > > replace "goto eof" by "goto :eof" Thanks, good catch. ("goto eof" without the colon works on TCC, which I normally use as my command shell). Paul. -- You received this message because you are subscribed

Re: Clojure script with shebangoid on windows

2010-05-30 Thread alux
Small addition, you missed to add the : before eof replace "goto eof" by "goto :eof" Thank you, and regards, alux On 28 Mai, 16:09, Paul Moore wrote: > On 28 May 2010 09:48, alux wrote: > > > Hello! > > > Short: It works, but is not perfect. > > > (this may need an windows expert to make it be

Re: Clojure script with shebangoid on windows

2010-05-30 Thread alux
Thank you! Greetings, a. On 28 Mai, 17:51, Paul Moore wrote: > On 28 May 2010 16:17, alux wrote: > > > Hello Paul, > > > thats much better, many thanks! > > I've added it to the Wikibooks > page,http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#S... > > Paul. -- You receive

Re: Clojure script with shebangoid on windows

2010-05-28 Thread Paul Moore
On 28 May 2010 16:17, alux wrote: > Hello Paul, > > thats much better, many thanks! I've added it to the Wikibooks page, http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Shebang_Scripting_in_Clojure Paul. -- You received this message because you are subscribed to the Google

Re: Clojure script with shebangoid on windows

2010-05-28 Thread alux
Hello Paul, thats much better, many thanks! Regards, alux On 28 Mai, 16:09, Paul Moore wrote: > On 28 May 2010 09:48, alux wrote: > > > Hello! > > > Short: It works, but is not perfect. > > > (this may need an windows expert to make it better) > > Try this: > > --- myscript.bat --- > :x (comme

Re: Clojure script with shebangoid on windows

2010-05-28 Thread Paul Moore
On 28 May 2010 09:48, alux wrote: > Hello! > > Short: It works, but is not perfect. > > (this may need an windows expert to make it better) Try this: --- myscript.bat --- :x (comment @echo off java -cp clojure.jar clojure.main "%~f0" %* goto eof ) (println "Hi!" *command-line-args*) -- Th

Clojure script with shebangoid on windows

2010-05-28 Thread alux
Hello! Short: It works, but is not perfect. (this may need an windows expert to make it better) After seeing a script for Scala using something shebang like for a windows system: scalascript.cmd ::#! @echo off call scala -savecompiled %0 %* goto :eof ::!# pri