Closed SevereOverfl0w closed 2 years ago
Thanks for the report. I cannot reproduce it on Windows, it does not panics. Interesting.
PS C:\docs> ttdl | coreutils.exe head -1
# D P Created Due Subject
PS C:\docs> ttdl | coreutils.exe head -2
# D P Created Due Subject
-------------------------------------
I need to run a Linux machine somewhere to test.
I redesigned the output mechanism in 3.4.1
. On Ubuntu 22, the new binary works without panicking.
There's no panic, but there is still Failed to print to stdout: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }
which I wouldn't expect either. For example, cat foo.txt | head -1
wouldn't error that the remaining lines to stdout were closed.
Ouch. I found a call that I have missed. I'll fix the call and publish a new release.
3.4.2
includes another fix for "broken pipe"
Works on my machine! Thanks!