SQLite Forum

Strange CLI .exit issue
Login
Modify that because DOS (and other single tasking) Operating Systems process the pipe operator (\|) as running the command before the pipe to completion and redirecting stdout to a temp file, then run the command after the pipe with stdin attached to the temp file.

Only Operating Systems which process pipes (\|) by running the two processes in parallel with stdout of the first attached to stdin of the latter will experience the first process thowing an error if the consumer closes the pipe before the producer is done producing.  Some common examples that this applies to are some versions of Concurrrent DOS, OS/2, OS/2 New Technology (aka Windows NT and its derivatives up to and including Windows 10), Linux, and the Unix and unix-like systems, including Mac OS X (but not MacOS), and QNX.