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