[PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

Eugeniu Rosca erosca at de.adit-jv.com
Tue Jul 20 18:30:39 CEST 2021


On Tue, Jul 20, 2021 at 12:05:47PM -0400, Tom Rini wrote:
> On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote:

[..]

> > Can you give examples for what you are thinking for radix notation?
> 
> Well, since we don't have subscript in shell, '(number)base' would how
> it would be.  Which I'm not convinced is better than making it clear to
> users that almost everything is hex input, including a few places that
> might surprise you such as partition numbers.

[FWIW/.02$] As a user, I would be happier to follow a project-wide
convention that any decimal command line input is treated as HEX or DEC,
rather than being forced to surround any number by its base in the shell.

--
Best regards,
Eugeniu Rosca


More information about the U-Boot mailing list