mit-scheme-devel
[Top][All Lists]
Advanced

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

Re: [MIT-Scheme-devel] How to run a script and exit?


From: Taylor R Campbell
Subject: Re: [MIT-Scheme-devel] How to run a script and exit?
Date: Mon, 9 Sep 2019 03:52:03 +0000

> Date: Mon, 9 Sep 2019 11:30:25 +0800
> From: SB <address@hidden>
> 
> > 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.

I forgot to specify --batch-mode.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]