[PATCH] Suppress tr's stderr in the generate function

Johannes Altmanninger aclopte at gmail.com
Mon Dec 28 07:20:20 CET 2020


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


More information about the Password-Store mailing list