bug#70860: Add an option to remove filenames for wc util

Paul Eggert <[email protected]> Fri, 17 Apr 2026 10:15:47 -0700
Newsgroups gmane.comp.gnu.core-utils.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 2026-04-17 10:03, Laurent Lyaudet wrote:

>>     for file in *; do
>>       lines=$(wc -l <"$file") &&
>>       printf '"%s" contains %d lines\n' "$file" $lines
>>     done
> 
> VS
> 
> lines=$(wc -ln "$file")

Not a fair comparison. The fair comparison is:

lines=$(wc -ln "$file")

versus:

lines=$(wc -l <"$file")

The latter approach already works on billions of computers worldwide, 
including non-GNU computers, and requires no changes to GNU coreutils. 
It also works correctly if the file name begins with "-", whereas the 
former approach does not. Both of these are wins.

> Why is free software full of people judging ideas on conservatism and
> authority argument?

Ad hominem arguments like this are unconvincing and even counterproductive.