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

From: Eli Barzilay (eli at barzilay.org)
Date: Tue Jan 12 23:25:54 EST 2010

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" "$@"

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.