GNU bug report logs - #18119
df --si misleading output units

Previous Next

Package: coreutils;

Reported by: Kernc <kerncece <at> gmail.com>

Date: Sun, 27 Jul 2014 20:24:02 UTC

Severity: wishlist

Tags: wontfix

Merged with 47023

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 18119 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: 18119 <at> debbugs.gnu.org
Subject: Re: bug#18119: df --si misleading output units
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









This bug report was last modified 4 years and 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.