From: Wolfgang Denk Date: Thu, 09 Aug 2012 22:06:40 +0200 Subject: [U-Boot] [PATCH v3 2/4] Allow newlines within command environment vars In-Reply-To: <1333179058-19598-2-git-send-email-sjg@chromium.org> References: <1333179058-19598-1-git-send-email-sjg@chromium.org> <1333179058-19598-2-git-send-email-sjg@chromium.org> Message-ID: <20120809200640.6B626204041@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message <1333179058-19598-2-git-send-email-sjg@chromium.org> you wrote: > Any environment variable can hold commands to be executed by the 'run' > command. The environment variables preboot, bootcmd and menucmd have > special code for triggering execution in certain circumstances. > > We adjust these calls to use run_command_list() instead of run_command(). > This change permits these variables to have embedded newlines so that > they work the same as the 'source' command. > > Signed-off-by: Simon Glass > --- > Changes in v2: > - Update commit message to be less confusing > > Changes in v3: > - Remove unneeded len parameter in calls to run_command_list > > common/main.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) Applied, thanks. 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 The human mind treats a new idea the way the body treats a strange protein - it rejects it. - P. Medawar