[U-Boot] Parsing of multi-line env vars broken

Simon Glass sjg at chromium.org
Fri Oct 10 01:01:40 CEST 2014


Hi,

On 26 September 2014 02:24, Wolfgang Denk <wd at denx.de> wrote:
> HI,
>
> this is just a heads up:  the handling of multi-line environment
> variables is broken in recent versions of U-Boot (and probably has
> been broken for some longer time - can't tell exactly as I have a bit
> of a problem to bisect across the MAKEALL / Kconfig changes):
>
> Test case:
>
> - Set multi-line var:
>
>         => setenv foo 'echo line 1
>         > echo line 2
>         > echo line 3'
>
>   OK
>
> - Print multi-line var:
>
>         => print foo
>         foo=echo line 1
>         echo line 2
>         echo line 3
>
>   OK
>
> - Run multi-line var:
>
>         => run foo
>         line 1
>
>   ERROR.  Only the first line gets executed, the rest is missing.
>   Only the first line gets parded by the hush shell...

As a follow-up, please see this potential patch:

http://patchwork.ozlabs.org/patch/397428/

Regards,
Simon


More information about the U-Boot mailing list