All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Parsing of multi-line env vars broken
Date: Fri, 26 Sep 2014 10:24:15 +0200	[thread overview]
Message-ID: <20140926082415.4397E382212@gemini.denx.de> (raw)

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...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A good teacher will lead the horse to  water,  an  excellent  teacher
will make the horse thirsty first.                     - Mario Cortes

             reply	other threads:[~2014-09-26  8:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-26  8:24 Wolfgang Denk [this message]
2014-10-09 23:01 ` [U-Boot] Parsing of multi-line env vars broken Simon Glass

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=20140926082415.4397E382212@gemini.denx.de \
    --to=wd@denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.