|
From: | Chris Hanson |
Subject: | Re: [MIT-Scheme-devel] How to run a script and exit? |
Date: | Sun, 8 Sep 2019 23:21:24 -0700 |
> Date: Mon, 9 Sep 2019 12:16:21 +0800
> From: SB <address@hidden>
>
> > Mon, Sep 9, 2019 at 11:52 AM Taylor R Campbell <address@hidden>
> >
> > I forgot to specify --batch-mode.
>
> Actually, I did use --batch-mode. This is the exact command I ran:
> mit-scheme --batch-mode --eval '(bind-condition-handler (list
> condition-type:error) (lambda (c) c (exit 123)) (lambda () (load "script")
> (exit 0)))'
> It prints:
> ';Loading "script"...
> ;... done
>
> I am using MIT Scheme 9.1.1 btw.
Oops. I guess you need
(parameterize ((param:suppress-loading-message? #t)) ...)
around the load too. Bleh.
_______________________________________________
MIT-Scheme-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/mit-scheme-devel
[Prev in Thread] | Current Thread | [Next in Thread] |