[Openmcl-devel] Openmcl-devel Digest, Vol 121, Issue 10

Ben Hyde bhyde at pobox.com
Tue Nov 26 06:04:23 PST 2013


CL-launch works fine with ccl.   My earlier slander of cl-launch has been resolved.  

You can ask quicklisp to install it, and then do 'sudo make install' from the directory that
appears in the quicklisp tree.  You need to have ccl in it's path.  There are lots of knobs on
cl-launch, most of which I've never used.  But you may want to reorder it's search list
for lisp implementations to get your favorites at the top.

On Nov 25, 2013, at 10:42 PM, Steven Núñez <steven.nunez at illation.com> wrote:
> Thanks Pascal, that seems to work. Ugly, but it works. I was also referred
> to cl-launch, but apparently it¹s not working with ccl at the moment.
> 
> Any chance of a -script option being added to ccl?
> 
> Regards,
> 	- Steve
> 
> 
> 
> On 2013-11-25 2:00 , "openmcl-devel-request at clozure.com"
> <openmcl-devel-request at clozure.com> wrote:
> 
>> Send Openmcl-devel mailing list submissions to
>> 	openmcl-devel at clozure.com
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://clozure.com/mailman/listinfo/openmcl-devel
>> or, via email, send a message with subject or body 'help' to
>> 	openmcl-devel-request at clozure.com
>> 
>> You can reach the person managing the list at
>> 	openmcl-devel-owner at clozure.com
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Openmcl-devel digest..."
>> 
>> 
>> Today's Topics:
>> 
>>  1.  CCL Shell Scripts (Steven N??ez)
>>  2. Re:  CCL Shell Scripts (Pascal J. Bourguignon)
>> 
>> 
>> ----------------------------------------------------------------------
>> 
>> Message: 1
>> Date: Sun, 24 Nov 2013 10:25:12 +0000
>> From: Steven N??ez <steven.nunez at illation.com>
>> To: "openmcl-devel at clozure.com" <openmcl-devel at clozure.com>
>> Subject: [Openmcl-devel] CCL Shell Scripts
>> Message-ID: <CEB7F505.21B4F%steve.nunez at illation.com>
>> Content-Type: text/plain; charset="windows-1252"
>> 
>> Greetings All,
>> 
>> Has anyone got a formula for creating shell scripts with CCL? Something
>> that equates to SBCL's ?script option? I need to write some pipelined
>> applications, and while "| ccl64 <options> script.lisp? works, the
>> surrounding framework is easier to use if I could just pass in the name
>> of an executable script.
>> 
>> The only thing I could find was a request for shebangs some three years
>> ago marked ?won?t fix?. Are there any other options?
>> 
>> Regards,
>> - Steve
>> 
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: 
>> <http://clozure.com/pipermail/openmcl-devel/attachments/20131124/fdc41fe8/
>> attachment-0001.html>
>> 
>> ------------------------------
>> 
>> Message: 2
>> Date: Sun, 24 Nov 2013 16:52:22 +0100
>> From: "Pascal J. Bourguignon" <pjb at informatimago.com>
>> To: openmcl-devel at clozure.com
>> Subject: Re: [Openmcl-devel] CCL Shell Scripts
>> Message-ID: <87k3fxvlu1.fsf at informatimago.com>
>> Content-Type: text/plain; charset=utf-8
>> 
>> Steven N??ez <steven.nunez at illation.com> writes:
>> 
>>> Greetings All,
>>> 
>>> Has anyone got a formula for creating shell scripts with CCL?
>>> Something that equates to SBCL's ?script option? I need to write some
>>> pipelined applications, and while "| ccl64 <options> script.lisp?
>>> works, the surrounding framework is easier to use if I could just
>>> pass in the name of an executable script.
>>> 
>>> The only thing I could find was a request for shebangs some three
>>> years ago marked ?won?t fix?. Are there any other options?
>> 
>> 
>> $ cat bin/script-ccl
>> #!/bin/sh
>> exec ccl -Q -n -e '(set-dispatch-macro-character #\# #\! (lambda (s c n)
>> (declare (ignore c n)) (read-line s) (read-line s) (values)))' -l "$0" -e
>> '(ccl:quit 0)' -- "$0" "$@"
>> (format t "~S~%" CCL:*UNPROCESSED-COMMAND-LINE-ARGUMENTS*)
>> (loop for line = (read-line *standard-input* nil)
>>     while line
>>     do (write-line (string-upcase line)))
>> $ (echo hello ; echo word) | bin/script-ccl a b c
>> ("bin/script-ccl" "a" "b" "c")
>> HELLO
>> WORD
>> 
>> 
>> -- 
>> __Pascal Bourguignon__
>> http://www.informatimago.com/
>> 
>> 
>> 
>> ------------------------------
>> 
>> _______________________________________________
>> Openmcl-devel mailing list
>> Openmcl-devel at clozure.com
>> http://clozure.com/mailman/listinfo/openmcl-devel
>> 
>> 
>> End of Openmcl-devel Digest, Vol 121, Issue 10
>> **********************************************
> 
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20131126/efa37f6a/attachment.htm>


More information about the Openmcl-devel mailing list