From: Simon Glass Date: Sat, 26 Oct 2013 05:01:32 +0000 (-0600) Subject: Make 'run' use run_command_list() instead of run_command() X-Git-Tag: v2014.07-rc1~1^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1992dbfdb9886c3dfc4a505091895c851f736f3a;p=oweals%2Fu-boot.git Make 'run' use run_command_list() instead of run_command() In the case where an environment variable spans multiple lines, we should use run_command_list() so that all lines are executed. This shold be backwards compatible with existing behaviour for existing scripts. Signed-off-by: Simon Glass --- diff --git a/common/main.c b/common/main.c index e54f63b956..9bee7bdc6b 100644 --- a/common/main.c +++ b/common/main.c @@ -1550,7 +1550,7 @@ int do_run (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) return 1; } - if (run_command(arg, flag) != 0) + if (run_command_list(arg, -1, flag) != 0) return 1; } return 0;