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

Re: Several comments

This page is part of the web mail archives of SRFI 22 from before July 7th, 2015. The new archives for SRFI 22 contain all messages, not just those from before July 7th, 2015.

> Marc>   #! /bin/sh
> Marc>   "exec" "scheme-script" "$0" "$@"
> Marc>   (define (main arg1 arg2)
> Marc>     (write (+ (string->number arg1) (string->number arg2))))
> Marc>   (apply main (script-arguments))
> It has the problem mentioned in the rationale: I type C-c C-l in
> XEmacs (or "Execute" in DrScheme), and the thing runs when it
> shoudn't.

But in this case (script-arguments) will signal an error.  So the
script **won't** run.  Moreover the system will tell you that this
is a missuse of a script (of course you know this if you are debugging
it, but it also catches real mistakes).