[Openmcl-devel] Running ccl as a shebang script

Javier Olaechea pirata at gmail.com
Thu Feb 16 16:15:24 UTC 2017


> I want to be able to use ccl as a shell scripting language without having
to jump through any cringe-inducing hoops.  That means I want my script
ideally to look like this:
>
> #!/bin/env ccl
> (lisp-code)

cl-launch allows one to do and it is easy to install,
https://github.com/fare/cl-launch

On Thu, Feb 16, 2017 at 11:07 AM, Jānis Džeriņš <lisp at jonis.lv> wrote:

> Ron Garret <ron at flownet.com> writes:
>
> > #!/bin/env python
> > python-code
> >
> > Can Lisp do that?”  I want the answer to be an unqualified, “yes.”
>
> But then again with Lisp (and buildapp -- thanks Zach!) one can create a
> binary, and then do this:
>
>   $ setcap cap_net_bind_service=+ep lisp-binary
>
> I.e., lisp-binary now can create raw sockets, same applies to suid
> bit. This is not possible with scripts that rely on shebang line.
>
> My point is -- now that your Python enthusiast asks you the "Can Lisp do
> that?" question, you ask them if Python can do this.
>
> I also think «":" ; hacks» are an acceptable response to the "Can Lisp do
> that?" question (shebang lines are a hack, anyway).
>
> My $0.02,
> --
> Jānis Džeriņš
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> https://lists.clozure.com/mailman/listinfo/openmcl-devel
>



-- 
"I object to doing things that computers can do." — Olin Shivers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clozure.com/pipermail/openmcl-devel/attachments/20170216/d07639b8/attachment.html>


More information about the Openmcl-devel mailing list