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

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

On Tue, Jan 12, 2010 at 8:01 PM, YC <yinso.chen at gmail.com> wrote:

>
> On Tue, Jan 12, 2010 at 7:53 PM, Eli Barzilay <eli at barzilay.org> wrote:
>
>> On Jan 12, YC wrote:
>> > A follow-on question - what do I need to do to make the script pick
>> > up command line arguments?  I did a quick mod to print out
>> > current-command-line-arguments and the script is not picking up the
>> > command line args that I passed it.
>>
>> Use
>>
>>  exec mzscheme -it "$0" "$@"
>>
>
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?
Thanks,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100112/3bd7ad8d/attachment.html>

Posted on the users mailing list.