Several comments shivers@xxxxxx (10 Mar 2001 02:57 UTC)
Re: Several comments Per Bothner (10 Mar 2001 03:48 UTC)
Re: Several comments sperber@xxxxxx (10 Mar 2001 08:50 UTC)
Re: Several comments shivers@xxxxxx (10 Mar 2001 17:23 UTC)
Re: Several comments Martin Gasbichler (11 Mar 2001 14:31 UTC)
Re: Several comments Marc Feeley (20 Mar 2001 16:14 UTC)
Re: Several comments sperber@xxxxxx (20 Mar 2001 16:33 UTC)
Re: Several comments Marc Feeley (20 Mar 2001 17:11 UTC)
Re: Several comments sperber@xxxxxx (22 Mar 2001 08:27 UTC)
Re: Several comments Marc Feeley (22 Mar 2001 13:05 UTC)
Re: Several comments sperber@xxxxxx (22 Mar 2001 13:29 UTC)
Re: Several comments Marc Feeley (22 Mar 2001 15:06 UTC)
Re: Several comments sperber@xxxxxx (22 Mar 2001 15:11 UTC)
Re: Several comments Marc Feeley (22 Mar 2001 15:28 UTC)
Re: Several comments Per Bothner (22 Mar 2001 17:01 UTC)
Re: Several comments Marc Feeley (22 Mar 2001 18:22 UTC)

Re: Several comments Marc Feeley 22 Mar 2001 15:28 UTC

> 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).

Marc