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.