SQLite Forum

Strange CLI .exit issue
Login
(This is under Win7.  It may or may not affect other platforms.)

When reading a script from a pipe and the script contains `.exit` followed by many [1] lines, an error is issued like:

```
c:\temp>sample.sql
The process tried to write to a nonexistent pipe.
```

The setup (from administrator console) is:

```
ftype sqlite3=cmd /c "type %1 | c:\bins\sqlite3.exe -batch %*"
assoc .sql=sqlite3
```

I'm almost certain this worked forever but I can't tell when it stopped working as I only keep the latest (3.35.2) plus the previous release, and it's present in both.

Has something changed lately with respect to stdin processing?

I'm not sure it's SQLite3's fault but given that Win7 is no longer updated I doubt there is a change Win7.

[1] How many is 'many'?  I see the problem with about 120 lines following `.exit` while fewer lines make it go away (possibly this is related to the file buffer used by ether Windows or SQLite).