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: SB
Subject: Re: [MIT-Scheme-devel] How to run a script and exit?
Date: Mon, 9 Sep 2019 01:44:40 +0800

Your solution mostly works. It does not work when there is an error in the code. When there is an error, MIT Scheme starts the debugger instead of immediately exiting with a non-zero exit code. Is there a way to immediately exit with a non-zero exit code when something goes wrong in the code?

On Mon, Sep 9, 2019 at 1:36 AM SB <address@hidden> wrote:
> mit-scheme --batch-mode --load script.scm --eval '(%exit 0)'

Is `(%exit 0)` documented? `exit` is documented, but I can't seem to find `%exit` in the documentation.

reply via email to

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