"jgart" <[email protected]> writes: >> I'm not sure what you mean if it is something beyond what we can do already >> with 'guix shell.' Do >> you mean using a particular hashbang as well? > > Yes, that is one feature that I was nodding ambiguously at. Sorry > >> guix shell sbcl sbcl-cl-csv unoconv -- sbcl --load myscript.lisp >> ~/Downloads/*.xlsx > > That command is too long. What Roswell does is create binaries and installs > them in your PATH for your usage like a traditional script that you can call > without also having to call the interpreter in your terminal invocation. > > I want to type just the following and have `myscript` be an executable > program available in my `guix home` environment: > >> myscript ~/Downloads/*.xlsx
What about something like this? --8<---------------cut here---------------start------------->8--- #!/bin/sh #|-*- mode:lisp -*-|# #| exec guix shell sbcl -- sbcl --script $0 "$@" |# (format t "test~%") --8<---------------cut here---------------end--------------->8--- This example is pretty similar to the ROS file header which would be like. --8<---------------cut here---------------start------------->8--- #!/bin/sh #|-*- mode:lisp -*-|# #| exec ros -Q -- $0 "$@" |# (format t "test~%") --8<---------------cut here---------------end--------------->8--- Cheers, Russell
