3 ms·
Can someone recommend a Lisp that will behave properly as a scripting language? By that I mean run quietly without a REPL, and honor this convention: #!/usr/b
by fexl 16y ago
Can someone recommend a Lisp that will behave properly as a scripting language? By that I mean run quietly without a REPL, and honor this convention:
#!/usr/bin/lisp
- pangram 16y agoPicolisp, although I suspect you can make a stub for most Lisps to get them to be usable in a shell script. Also, have you considered taking a look at SCSH, a Scheme shell? There's even a topic for it on the HN front page: http://news.ycombinator.com/item?id=2070891 http://news.ycombinator.com/item?id=2070891
- vog 16y agoAlmost any Lisp implementation allows for starting your code as a stand-alone application. You may have to pass some interpreter option to your #! line, but that's all.
- sea6ear 16y agoI believe clisp will. see section 32.6.2. Scripting with CLISP in this document http://clisp.sourceforge.net/impnotes/quickstart.html http://clisp.sourceforge.net/impnotes/quickstart.html
- fexl 16y agoThanks for the suggestions everyone! I had a bad experience trying this with some Lisp a couple of years ago -- I could not for the life of me turn off the stupid banner printout, but I did manage to disable the REPL. At the time I just gave up and moved on, but I'll give it another try. The last time I actually programmed in Lisp was back in the mid-80s for my AI classes at GA Tech. I liked it then.