Eugene Tyurin <eugene@...> writes:
> On 04/06/2012 03:27 PM, Aleksej Saushev wrote:
>> Nikodemus Siivola<nikodemus@...> writes:
>>
>>> * Use trampoline script:
>>>
>>> sbcl4gb:
>>>
>>> #!/bin/sh
>>> exec sbcl --dynamic-space-size 4Gb $@
>>>
>>> Your script:
>>>
>>> $!/bin/sbcl4gb --script
>>> ...
>> JFYI, this doesn't work. Interpreter has to be binary.
>
> Actually, it does - just with a twist.
>
> #!/bin/sh
> /usr/bin/sbcl --dynamic-space-size 4096 --script myscript.lisp $*
> ##
This is exactly what I told, interpreter has to be binary, like /bin/sh,
script doesn't work.
> sbcl is smart enough to ignore the first shebang line in myscript.lisp
> even when it's invoked like the above. *posix-argv* come across just
> file as well.
By the way, the idiom is using ${1:+"$@"} in such cases, $@ will bring you
unpleasant surprise one day.
--
HE CE3OH...
|