GNU bug report logs - #16922
df --si -h should emit a warning

Previous Next

Package: coreutils;

Reported by: Mateusz Jończyk <mat.jonczyk <at> o2.pl>

Date: Sun, 2 Mar 2014 14:16:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mateusz Jończyk <mat.jonczyk <at> o2.pl>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>, Pádraig Brady <P <at> draigBrady.com>
Cc: 16922 <at> debbugs.gnu.org
Subject: bug#16922: df --si -h should emit a warning
Date: Sun, 02 Mar 2014 19:13:52 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

W dniu 02.03.2014 18:38, Bernhard Voelker pisze:
> The problem is maybe that "df --help" doesn't explicitly say that -h is using
> powers of 1024 no matter what other option was given before.
> 
> -h, --human-readable  print sizes in human readable format (e.g., 1K 234M 2G) 
> -H, --si              likewise, but use powers of 1000 not 1024
> 
> However, the info page is quite clear about this:
> 
> `-h' `--human-readable' Append a size letter to each size, such as `M' for
> mebibytes. Powers of 1024 are used, not 1000; `M' stands for 1,048,576 bytes. 
> This option is equivalent to `--block-size=human-readable'.  Use the `--si'
> option if you prefer powers of 1000.
> 
I did not read the full man page description, just found the header '--si' and
thought that it does just what the name says: switches the display powers from 1024
to 1000. It should probably be described earlier in the manpage.

- -- 
Pozdrawiam,
Mateusz Jończyk
AEI, Informatyka, Semestr 2 Magisterskich, BDiIS

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: My public key: 0x2C64C488 on hkp://pool.sks-keyservers.net
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTE3TfAAoJELLT9LcsZMSIolUH/jHyBgsBerTkkD1UF+HVGlpH
sAp/H3lS3syzpTVjOMrCmW6WtYAWWzpVbLXmHM4YLSX1U/kzE9RibfJ5inH+ZInT
Stllsi3Dkh0ACyPBQCEcAsILMzEnV+5Sxo+Qc9JP+PAQetQ1IbuFRRuPfh2TfFz7
1jUWWWeUDy20S7uUMb4Xew201VLdm4si+aaTn0dJV9Wl8pSC/ldbF6MOiYypJZji
D6obMcyzcofWNY2sNi2Jz9lxNBHGW7jG2Z0k4PUigGY4gLdG1aUfOzVc6n5DkT0x
A4hJzl1oIlvtr9RAVmrt7U7QA2oHgVmGzkuLEWSdgRoCh4ZGKAbqRyxHWSOu4d0=
=cwS7
-----END PGP SIGNATURE-----




This bug report was last modified 11 years and 142 days ago.

Previous Next


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