[PATCH v9 3/7] env: Allow U-Boot scripts to be placed in a .env file
Marek Behún
marek.behun at nic.cz
Thu Oct 21 15:28:31 CEST 2021
On Thu, 21 Oct 2021 15:25:37 +0200
Marek Behún <marek.behun at nic.cz> wrote:
> Hello,
>
> On Thu, 21 Oct 2021 15:06:51 +0200
> Wolfgang Denk <wd at denx.de> wrote:
>
> > I confirm that '+=' looks better. But '+=" is technically broken.
>
> a bit of my opinion:
> I think =+ will confuse far more people than + as last character of var
> name working weirdly. But I also think that + should be supported as
> last character. Therefore I propose backslash escaping in variable name,
> i.e.
> var+=value
> appends value to var, while
> var\+=value
> sets variable with name "var+"
>
> Marek
Also, I think that it would be better if spaces and tabs were allowed
to indent the .env file, i.e.
var_a = 3
var_bcd = 7
should set "var_a" to "3", "var_bcd" to "7".
If special character are needed in either name or value, they could be
escaped and/or quoted.
Marek
More information about the U-Boot
mailing list