Re: How to escape from debugger loop if *STANDARD-INPUT* is redirected?

Nicolas Martyanoff <[email protected]> Fri, 14 Feb 2025 17:12:39 +0100
Newsgroups gmane.lisp.steel-bank.general
Message-ID <[email protected]>
Josef Wolf <[email protected]> writes:

> On Fri, Feb 14, 2025 at 09:02:17AM -0500, Douglas Katzman wrote:
>> I would imagine you want to just disable the debugger for any SBCL used in
>> a pipeline, no?
>> You can use --disable-debugger on the command-line or (disable-debugger) in
>> a script to do that
>
> I think I'll use
>
>     (unless (interactive-stream-p *standard-input*)
>           (disable-debugger))
>
> although inserting this into every script seems to be somewhat tedious..

The --script command line option is probably what you want if you are
running programs non-interactively, as part of the shell pipeline.

Best,

-- 
Nicolas Martyanoff
https://n16f.net
[email protected]