> Mon, Sep 9, 2019 at 5:10 AM Taylor R Campbell <
address@hidden>
>
> Could do something like
> mit-scheme --eval '(bind-condition-handler (list condition-type:error)
(lambda (c) c (exit 123)) (lambda () (load "script") (exit 0)))'
> (It is kind of silly that something like this is not built-in.)
:-) But this solution also prints ';Loading "script.scm"... ;... done' to stdout. This side effect may be undesirable for many.
Will the maintainers of MIT Scheme consider adding the ability to run scripts using the mit-scheme executable? Something like 'mit-scheme myscript.scm' on the command line. Possibly something that allows Scheme code to be turned into an executable script by adding a shebang (e.g. #!/usr/bin/mit-scheme). It is very inconvenient that there is currently no obvious way to do any of this.