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


View this message in rfc822 format

From: Bob Proulx <bob <at> proulx.com>
To: Kernc <kerncece <at> gmail.com>
Cc: 18119 <at> debbugs.gnu.org
Subject: bug#18119: df --si misleading output units
Date: Sun, 3 Aug 2014 15:19:16 -0600
Kernc wrote:
> By example,
> 
> $ df --human-readable /dev/sdb2
> Filesystem      Size  Used Avail Use% Mounted on
> /dev/sdb2        82G   66G   12G  86% /home
> $ df --si /dev/sdb2
> Filesystem      Size  Used Avail Use% Mounted on
> /dev/sdb2        88G   71G   13G  86% /home
> 
> In both cases, the output unit presented is G(iB) whereas a
> power-of-1000 unit (GB) was requested in the latter invocation.

Saying "G" does not specify either GiB nor GB.  It specifies the
magnitude in the unit requested.  Saying that it specifies GiB in both
cases is incorrect.

If SI powers of ten units were requested then that is emitted.  If
human readable powers of two units were requested then that is
emitted.

Bob




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.