Pádraig Brady <[email protected]> writes:

> On 29/11/2025 07:35, Collin Funk wrote:
>> Here is the FreeBSD commit [1].
>> Aside from FreeBSD compatibility, I also think it makes sense
>> because
>> 'du' has had -c corresponding to the long option --total since very
>> early Fileutils releases. It is in the fileutils-3.13 tarball, but
>> has no mention in NEWS. :'(
>> [1]
>> https://github.com/freebsd/freebsd-src/commit/076419d2073e67d516cb96f8b837ac6cfa754624
>> -- 8<--
>> The --total option to 'df' was added in coreutils-7.0 (2008).
>> FreeBSD
>> 5.3.0 (2004) had the -c option for the same purpose. This long option
>> previously had no short option, so this patch adds -c to be compatible
>> with FreeBSD.
>
>
> I'm not sure about this.
> POSIX/Solaris has -t, FreeBSD/NetBSD has -c

Ah, I looked at the Solaris man page but missed that somehow.

> Consequently we didn't pick a corresponding short option.

Sure, we can leave it that way. Hopefully if POSIX decides to
standardize it they choose -c.

Collin

Reply via email to