bug#71309: du --total output does not take in account the --threshold

Pádraig Brady <[email protected]> Sat, 29 Nov 2025 12:09:24 +0000
Newsgroups gmane.comp.gnu.core-utils.bugs
Message-ID <[email protected]>
On 28/11/2025 18:50, Collin Funk wrote:
> Hi,
> 
> You wrote:
> 
>> In a directory with this:
>>
>> $du --total *
>> 10240   10-Megs
>> 20480   20-Megs
>> 61444   60-Megs
>> 81924   80-Megs
>> 174088  total
>>
>> I would expect du --total --threshold -50M * to be
>>
>> $du --total --threshold -50M *
>> 10240   10-Megs
>> 20480   20-Megs
>> 30720   total

> I agree it is a bit unclear, but FreeBSD operates the same way.
> Therefore, I am inclined to keep the existing behavior.

Right. Though it's probably worth mentioning in the info docs
that --threshold is a display threshold, and thus does
not impact --total.