[U-Boot] [PATCH 2/2] beagle: handle import of environments in files with CRLF as line endings

Alexander Holler holler at ahsoftware.de
Mon May 14 11:07:39 CEST 2012


Am 13.05.2012 23:38, schrieb Wolfgang Denk:
> Dear Alexander,
>
> In message<4FB01720.90402 at ahsoftware.de>  you wrote:

> What exactly are such error modes, by the way?  I would expect that
> trailing white space is pretty much harmless for most variable
> settings?

The problem already starts in u-boot itself:

a="b\r"

I'm not sure if \r on the u-boot-cmdline does work, but you know what I 
mean.

$a=="b"

is false

fatload $a

fails (if the file is named 'b').

...

Regards,

Alexander


More information about the U-Boot mailing list