[U-Boot-Users] improvement to setenv handling

Wolfgang Denk wd at denx.de
Tue Sep 13 20:14:39 CEST 2005

In message <2D63750CB4594644B0372AC317B521CC5DB9C4 at mtlexch04> you wrote:
> While setting-up an OMAP 5912 OSK, I experienced funny behavior with
> U-Boot's setenv command.  The cause was that I was using an invalid syntax
> with an equal sign, i.e.
>   setenv variable=value
> instead of
>   setenv variable value

This is not exactly invalid syntax. The  first  command  is  actually
valid - it tries to delete the "variable=value" variable.

> Would it be a fair limitation to impose that variable names can't contain an


> equal sign, and either accept my invalid syntax or report an error ?

Umm... actually this is what it already does: it accepts your syntax :-)

Best regards,

Wolfgang Denk

Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Use C++ to confuse your enemies; use C to produce stable code.

More information about the U-Boot mailing list