[Info-vax] CLI parsing routines suggestion, was: Re: InnoDB memory issue in MariaDB

Simon Clubley clubley at remove_me.eisner.decus.org-Earth.UFP
Fri Oct 9 14:03:11 EDT 2020


On 2020-10-09, Arne Vajhøj <arne at vajhoej.dk> wrote:
>
> I used:
>
> mod mysql$server 
> /fil=1000/bio=1000/dio=1000/ast=2500/enq=5000/byt=200000/pgfl=2000000
>
> with 5.5.68 on Alpha.
>
> Arne

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.

It would not change the value actually seen by the program the user is
running and the user could mix-and-match on the same command line as
I have done above.

This is for decimal numbers, but it may be worthwhile doing something
similar for octal and hex numbers as well.

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