SQLite Forum

Strange CLI .exit issue
Login
>It would be overly presumptuous, IMO, for a consumer to preclude such reports by consuming all input regardless of its content.

Except that upon `.exit` there is a guarantee no more input is needed.

>While some users may dislike seeing broken pipe reports, others value them as indicators that something unexpected is happening.

The problem also appears from within editors, and it's more serious than just an annoying (possibly useful to some) message.  The difference in that case is the editor (PNotepad to be specific for my case) just hangs.  And this is very annoying.

In any case, I don't propose SQLite3 to 'fix' this in the official source.

I just care to fix my own copy that gives me trouble.

And to that end, I still don't have an opinion on whether the code I showed seems to be correct in that it does not cause other problems.