[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] gst & scripting

From: Tony Garnock-Jones
Subject: Re: [Help-smalltalk] gst & scripting
Date: Tue, 09 Dec 2008 15:28:17 +0000
User-agent: Mozilla-Thunderbird (X11/20080724)

Paolo Bonzini wrote:
> So that's why someone (not me, I don't remember who it was) concocted...
>>> #! /bin/sh
>>> "exec" "gst" "-f" "$0" "$@"
> ... this one, which is actually quite elegant.  It is similar to how Tcl
> scripts are invoked with
>   #! /bin/sh
>   # Tcl sees the next line as a continuation of the comment \
>   exec wish "$0" "$@"

It's also similar to where we ended up for Scheme scripts (using, in
this instance, mzscheme):

"true" ;exec env mzscheme -mv -f "$0" -e "(apply script-main \"`dirname
$0`\" (vector->list argv))" -- "$@"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]