bug#81360: Acknowledgement (df -P seems to use wrong format)
Christoph Anton Mitterer <[email protected]> Mon, 06 Jul 2026 16:19:51 +0200
| Newsgroups | gmane.comp.gnu.core-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 2026-07-05 at 00:07 -0700, Collin Funk wrote: > 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: >=20 > =C2=A0=C2=A0=C2=A0 $ df -T | head -n 1 > =C2=A0=C2=A0=C2=A0 Filesystem=C2=A0=C2=A0=C2=A0=C2=A0 Type=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 1K-blocks=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Used Available Use% > Mounted on > =C2=A0=C2=A0=C2=A0 $ df -P -T | head -n 1 > =C2=A0=C2=A0=C2=A0 Filesystem=C2=A0=C2=A0=C2=A0=C2=A0 Type=C2=A0=C2=A0=C2= =A0=C2=A0 1024-blocks=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Used Available Capacity > Mounted on >=20 > 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. Hmm still... the current behaviour seems also sub-optimal. -P is literally described as: "use the POSIX output format" but then it doesn't, or at least not always. I guess my main point here is that the option is specifically meant to get the portable format. Anyway,... just my opinion :-D Cheers, Chris.