[PATCH v9 3/7] env: Allow U-Boot scripts to be placed in a .env file

Marek Behún marek.behun at nic.cz
Fri Oct 22 16:04:36 CEST 2021


Hello Wolfgang,

On Fri, 22 Oct 2021 10:06:55 +0200
Wolfgang Denk <wd at denx.de> wrote:

> For the '+=' case, there is no way to escape the '+', as all
> commonly used escapes are valid characters in the variable name,
> too.

We can define that backslash is to be also escaped if it is to be used
as variable name:
  weird_var\\\+=abcd

I still think it is far more intuitive than =+.

Anyway, IMO '+' as the last character in varname is a extreme corner
case; I think that no one sane actually uses it.

But even if they did, Simon's patches do not break it. Simon's patches
only disallow it in board environment definition during compilation.

I think it is a completely reasonable thing to diallow board
maintainers (i.e. only U-Boot developers, not users) from using such
construction.

Marek


More information about the U-Boot mailing list