[plt-scheme] scheme unix script that does not terminate
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!