[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.
- [MIT-Scheme-devel] How to run a script and exit?, SB, 2019/09/08
- Re: [MIT-Scheme-devel] How to run a script and exit?, Taylor R Campbell, 2019/09/08
- Re: [MIT-Scheme-devel] How to run a script and exit?, SB, 2019/09/08
- Re: [MIT-Scheme-devel] How to run a script and exit?, SB, 2019/09/08
- Re: [MIT-Scheme-devel] How to run a script and exit?, Taylor R Campbell, 2019/09/08
- Re: [MIT-Scheme-devel] How to run a script and exit?, SB, 2019/09/08
- Re: [MIT-Scheme-devel] How to run a script and exit?,
Taylor R Campbell <=
- Re: [MIT-Scheme-devel] How to run a script and exit?, SB, 2019/09/09
- Re: [MIT-Scheme-devel] How to run a script and exit?, Taylor R Campbell, 2019/09/09
- Re: [MIT-Scheme-devel] How to run a script and exit?, Chris Hanson, 2019/09/09
- Re: [MIT-Scheme-devel] How to run a script and exit?, Taylor R Campbell, 2019/09/08