[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:21:32 CEST 2012


Am 14.05.2012 11:07, schrieb Alexander Holler:
> 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').
>
> ...

And

a="1\r"

isn't a number. So anything which expects a number will fail. E.g.

fatls usb 0:${a}

and every arithmetic which uses ${a}

Regards,

Alexander


More information about the U-Boot mailing list