bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Paul Eggert
Subject: bug#61300: wc -c doesn't advance stdin position when it's a regular file
Date: Sun, 5 Feb 2023 12:59:49 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]