From: Michael Walle Date: Thu, 12 Jan 2012 23:54:43 +0100 Subject: [U-Boot] [PATCH] cmd_source: introduce run_script() In-Reply-To: <201201122251.48510.michael@walle.cc> References: <1326236659-6257-1-git-send-email-michael@walle.cc> <201201101840.04925.vapier@gentoo.org> <201201122251.48510.michael@walle.cc> Message-ID: <201201122354.43249.michael@walle.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Donnerstag 12 Januar 2012, 22:51:48 schrieb Michael Walle: > Am Mittwoch 11 Januar 2012, 00:40:04 schrieb Mike Frysinger: > > although i wonder if it'd be possible to merge this into existing > > run_commands2() ... do we allow newlines now in variables that get run ? > > mh if the hush parser is enabled this seems to be true. eg. source() and > run_commands2() use the same parse_string_outer(). Actually parse_string_outer() terminates on '\n'. So i think the current version of source() is broken. -- Michael