bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16922: df --si -h should emit a warning


From: Pádraig Brady
Subject: bug#16922: df --si -h should emit a warning
Date: Sun, 02 Mar 2014 14:33:51 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 03/02/2014 12:33 PM, Mateusz Jończyk wrote:
> Hello,
> There should be a warning when running df --si -h because it will display 
> results
> in blocks of 1024 and not 1000, as one might think (the switch --si displays 
> blocks
> in a human-readable format when used by itself).

This is confusing.

I think the confusion stems from the option names themselves.
I.E. I'm not sure you'd want to warn as you might want to support overriding 
options.
Consider: alias df='df -h'

Then you could very well want to `df -H` to override the power from 1024 to 
1000.

So really the option should be --human-si not just --si.

Also I notice that in GNU df, -h and -H are 1024 and 1000 based respectively,
whereas on FreeBSD it's the other way around :(

How about we just support --human-si and deprecate --si ?

thanks,
Pádraig.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]