public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alexander Holler <holler@ahsoftware.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] beagle: handle import of environments in files with CRLF as line endings
Date: Mon, 14 May 2012 11:21:32 +0200	[thread overview]
Message-ID: <4FB0CE9C.1030201@ahsoftware.de> (raw)
In-Reply-To: <4FB0CB5B.2040907@ahsoftware.de>

Am 14.05.2012 11:07, schrieb Alexander Holler:
> Am 13.05.2012 23:38, schrieb Wolfgang Denk:
>> Dear Alexander,
>>
>> In message<4FB01720.90402@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

  reply	other threads:[~2012-05-14  9:21 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-13 12:50 [U-Boot] [PATCH 1/2] Add option -r to env import to allow import of text files with CRLF as line endings Alexander Holler
2012-05-13 12:50 ` [U-Boot] [PATCH 2/2] beagle: handle import of environments in " Alexander Holler
2012-05-13 17:09   ` Marek Vasut
2012-05-13 17:56     ` Alexander Holler
2012-05-13 18:52       ` Marek Vasut
2012-05-13 18:58         ` Alexander Holler
2012-05-13 18:49     ` Wolfgang Denk
2012-05-13 18:57       ` Marek Vasut
2012-05-13 19:26         ` Wolfgang Denk
2012-05-13 19:45           ` Marek Vasut
2012-05-13 19:53             ` Wolfgang Denk
2012-05-13 20:18         ` Alexander Holler
2012-05-13 21:38           ` Wolfgang Denk
2012-05-14  8:29             ` Alexander Holler
2012-05-14  9:07             ` Alexander Holler
2012-05-14  9:21               ` Alexander Holler [this message]
2012-05-13 21:47         ` Måns Rullgård
2012-05-14 16:02   ` Tom Rini
2012-05-14 17:04     ` Alexander Holler
2012-05-14 18:45       ` Marek Vasut
2012-05-14 22:23         ` Alexander Holler
2012-05-13 12:58 ` [U-Boot] [PATCH 1/2 v2] Add option -r to env import to allow import of text " Alexander Holler
2012-05-13 18:45 ` [U-Boot] [PATCH 1/2] " Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FB0CE9C.1030201@ahsoftware.de \
    --to=holler@ahsoftware.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox