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

Consequently we didn't pick a corresponding short option.

cheers,
Padraig


Reply via email to