Subject: bug#61300: wc -c doesn't advance stdin position when it's a regular file

From: Paul Eggert <[email-masked]>
Date: Sun, 5 Feb 2023 12:59:49 -0800

On 2023-02-05 11:59, Pádraig Brady wrote:

> Hopefully the attached addresses this. 

Thanks for fixing that.

> Note it doesn't add the constraint on the input being readable,
> which I'll think a bit more about.

Let's leave that as-is, please. If 'wc' can output the correct value 
without reading its input, POSIX does not require 'wc' to do the read, 
and it seems perverse to modify 'wc' to go to the effort to refuse to 
tell the user useful information that the user requested and that 'wc' 
knows.