coreutils
[Top][All Lists]
Advanced

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

Re: Feature Request: numfmt input type defaults to 'auto' instead of 'no


From: Pádraig Brady
Subject: Re: Feature Request: numfmt input type defaults to 'auto' instead of 'none'
Date: Thu, 22 Aug 2024 11:37:40 +0100
User-agent: Mozilla Thunderbird Beta

On 22/08/2024 03:51, Oliver Webb wrote:
Hello, first I'd like to say thanks for the GNU coreutils.

When trying to parse numbers with `numfmt`, I noticed
that the input type was 'none' by default. This makes
converting to other formats harder since you have to
specify `--from`. Changing it's default input type to
`auto` wouldn't break compatibility and would allow quick
conversion from SI/IEC-I formats to other ones.

Best Regards,

-   Oliver Webb <aquahobbyist@proton.me>

It's a fair request, but one of those 50:50 decisions.
If we defaulted to auto then users may overlook the
fact that K and G etc. in the input were converted
in powers of 10 rather than powers of 2.

Making users select the input format explicitly,
avoids this common ambiguity.

cheers,
Pádraig



reply via email to

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