Hi,
Christoph Anton Mitterer <[email protected]> writes:
> Hey.
>
> Stupid me... had an alias defined for df, which included -T.
>
> But still, shouldn't -P then override -T or at least give an error that
> both are mutually exclusive?
I lean towards keeping the current behavior because -T isn't really a
distinct output mode that should override (or be overridden) by -P. Note
the difference in the headers here:
$ df -T | head -n 1
Filesystem Type 1K-blocks Used Available Use% Mounted on
$ df -P -T | head -n 1
Filesystem Type 1024-blocks Used Available Capacity Mounted on
There are also some differences when using -P, as described in the
manual [1], that one might want combined with the type. Therefore,
disallowing it would probably not be nice.
Collin
[1] https://www.gnu.org/software/coreutils/manual/coreutils.html#df-P