On Sun, Dec 27, 2020 at 08:57:40PM +0100, Nicolai Dagestad wrote:
> This is a problemen with tr from the coreutils on arch, I don't know how it
> reacts on other
> platforms.
>
> tr started to complain about broken pipes recently.
> It looks like it is because read closes the pipe when it has read enough
> characters.
>
> After a little bit more testing, I found that when tr receives more than 4096
> bytes of data
> and but less is read from the output pipe before it gets closed, I get the
> error message.
How to reproduce? With coreutils 8.32-1 I get no error on
command printf %05000d 0 | tr 0 1 | head -c 10