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: Chris Hanson
Subject: Re: [MIT-Scheme-devel] How to run a script and exit?
Date: Sun, 8 Sep 2019 23:21:24 -0700

parameterize doesn't exist in 9.1.1.  There's an equivalent that can be used with fluid-let but I don't remember the name offhand.

Using 10.1.10 would be preferable since it has much better standards compliance.

On Sun, Sep 8, 2019 at 9:27 PM Taylor R Campbell <address@hidden> wrote:
> 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

reply via email to

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