Re: Exit with error code when stdin ends in debugger?

Andreas Franke via Sbcl-help <[email protected]> Tue, 10 Dec 2024 21:24:10 +0000
Newsgroups gmane.lisp.steel-bank.general
Message-ID <trinity-ecd1075f-8ac9-4a8a-88ac-59e720618abc-1733865849943@trinity-msg-rest-gmx-gmx-live-548599f845-jlz95>
Works for me, either of those ways:

sbcl --disable-debugger --eval '(error "foo")'

sbcl --script <<EOF
(error "foo")
EOF

> Exit with error code when stdin ends in debugger? [...]
> I'm wondering if that would be a good idea.  It'd sure help with sbcl
> used in shell scripts (and things getting messy).
>
> Sven