From: Robert G. <rpg...@si...> - 2010-09-20 04:43:25
|
On 9/19/10 Sep 19 -11:26 PM, Teemu Likonen wrote: > * 2010-09-19 19:49 (-0500), Robert Goldman wrote: > >> This may be a dumb question, but why not support >> >> #!/usr/bin/env sbcl --script --quicklisp >> >> or, alternatively, if you want to give preference to quicklisp >> >> #!/usr/bin/env sbcl --script --no-quicklisp > > At least on Linux systems these #! scripts support only one argument. > The next is filename. For example, this won't work: > > #!/usr/bin/env sbcl --script > (write-line "Hello, world!") > > because "sbcl" is the argument for "/usr/bin/env" and "--script" is > interpreted as the filename: > > /usr/bin/env: sbcl --script: No such file or directory > > Now, let's try with --quicklisp > > #!/usr/bin/env sbcl --script --quicklisp > (write-line "Hello, world!") > > We get error > > /usr/bin/env: sbcl --script --quicklisp: No such file or directory > > saying that there is no file "--script --quicklisp". > > (I'm using Debian GNU/Linux 5.0.) I only have access to a Mac right now, which is BSDish instead of Linuxish. The man page there for env has: env [-i] [name=value ...] [utility [argument ...]] which led to my suggestion. best, r |