[plt-scheme] scheme unix script that does not terminate

From: YC (yinso.chen at gmail.com)
Date: Tue Jan 12 23:32:30 EST 2010

On Tue, Jan 12, 2010 at 8:25 PM, Eli Barzilay <eli at barzilay.org> wrote:

> On Jan 12, YC wrote:
> > Eli - need to trouble you one more time... it seems like with the
> > code I can not accept option arguments (-<x> or --<x>).  It seems
> > like they were being interpreted by mzscheme instead of by the
> > script.
> >
> > $ ./run.ss --port 8080
> > ;; => exec mzscheme -it "./run.ss" "--port 8080"
> > *mzscheme: bad switch: --port*
> > * *
> > Is there a way to make mzscheme pass the option to the script, instead of
> > interpreting it?
>
> Sorry, there was a missing "-" there:
>
>  exec mzscheme -it- "$0" "$@"
>
>
Awesome!  Thanks a bunch for your help, Eli - very appreciated.

Thanks,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100112/0344f530/attachment.html>

Posted on the users mailing list.