Subject: Re: bug#18119: df --si misleading output units

From: Assaf Gordon <[email-masked]>
Date: Fri, 19 Oct 2018 21:52:50 -0600

tags 18119 wontfix
severity 18119 wishlist
close 18119
stop

(triaging old bugs)

On 04/08/14 08:07 AM, Paul Eggert wrote:
> Kernc wrote:
>> Since `--block-size=GB` outputs the value in GB, and 'GB' is the unit
>> appended, why doesn't `--si` do the same (use SI-units to mark
>> "SI-magnitude" values)?
> 
> Because it's more concise that way, and because it's been that way for 
> years.  No doubt it could have been done differently, but at this point ...

Note that in the meantime coreutils gained a new program: "numfmt".
This program performs unit conversions with much finer control,
including GiB and GB and others.

"numfmt --help" even includes the following examples:
---
$ df -B1 | numfmt --header --field 2-4 --to=si
---

Given the above, and with no further comments in 4 years, I am closing
this report.

-assaf