[Info-vax] CLI parsing routines suggestion, was: Re: InnoDB memory issue in MariaDB
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Sun Oct 11 10:16:58 EDT 2020
On 2020-10-09, Arne Vajhøj <arne at vajhoej.dk> wrote:
> On 10/9/2020 2:03 PM, Simon Clubley wrote:
>> I wonder if VSI should consider adding an optional thousands character
>> to numeric keyword values (ie: those keyword values defined as $NUMBER)
>> which could be silently stripped by the CLI parsing routines so the
>> value seen by programs is unchanged ?
>>
>> The parsing routines could also issue a warning if the characters are
>> used in a $NUMBER value but are not placed at the expected points as
>> that could help catch when people type too few or too many digits for
>> a value.
>>
>> It would make commands like the above more readable and less prone to
>> typing or reading errors.
>>
>> For example:
>>
>> mod mysql$server
>> /fil=1000/bio=1000/dio=1000/ast=2500/enq=5000/byt=200_000/pgfl=2_000_000
>>
>> This would be fully backwards compatible with existing behaviour and
>> it would be up to the user whether they used a thousands character or not.
>
> That, or K and M suffixes.
>
> /byt=200K/pgfl=2M
>
But is that /pgfl=(2*1000*1000) or /pgfl=(2*1024*1024) ? :-)
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list