Message ID | 1382763695-2849-3-git-send-email-sjg@chromium.org |
---|---|
State | Deferred |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 165F82C00BB for <incoming@patchwork.ozlabs.org>; Sat, 26 Oct 2013 16:02:53 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2901D4A235; Sat, 26 Oct 2013 07:02:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j8-rZ9FotFhJ; Sat, 26 Oct 2013 07:02:50 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 89DDD4A216; Sat, 26 Oct 2013 07:02:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F190E4A228 for <u-boot@lists.denx.de>; Sat, 26 Oct 2013 07:02:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x8L-SNN6jzAD for <u-boot@lists.denx.de>; Sat, 26 Oct 2013 07:02:36 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from mail-ob0-f202.google.com (mail-ob0-f202.google.com [209.85.214.202]) by theia.denx.de (Postfix) with ESMTPS id 7C1984A219 for <u-boot@lists.denx.de>; Sat, 26 Oct 2013 07:02:28 +0200 (CEST) Received: by mail-ob0-f202.google.com with SMTP id wn1so363078obc.3 for <u-boot@lists.denx.de>; Fri, 25 Oct 2013 22:02:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Lem21draOqhQEarXMGus8XySQcCE5aGVqJW2oIu6P+o=; b=SKeDdhksNj1gC6BBeVqO+ZmKUc8Azn6Om52ZgOMsj05ws4NTN/8TaOeifJs2TOJU5g PWei3C7jdQ5akuR6EWSt82tXnTHAci+kYbb/qDJIAGXGndwHU3hc6D6Z9MGfFZccuYVT ERV9QJ35mjqd++6ePaUPdwFRDwtCQTGyPCH4MsumYkf9fQXEsCOJpQCxSqSviRuiRH/+ MBgljONIFSWsWrYEbPKKwE2f2gFGxlj5ZaK82Eck40TpsfvdiN8v0HVxgLKR7bVpn84f n/jXOA6L7LFEysL5XZSvNXLJOAGRKjYrXYb5BkM5G1Uokd6Ou0VUKvXtpR6rttMgWGY6 PLBg== X-Gm-Message-State: ALoCoQkTyuUxSFOCeUCieUhKpBPmWYu44u3jyWLo4BCX/CrdB8oBuQpGVCMWc5PmVAMLhHArsWwJJQiY0xnnfIECW3i8ohdHID7Oh1gGuKsqQ5TIUBXHWCrwiIrndm0CDBoM6C9tR0BhcGCjbXDp42eKiICqhyod2GivB1UMZrYRVFzfRyzO89WtQyWvhm5Rzny/5WEtlawI X-Received: by 10.42.72.197 with SMTP id p5mr4234579icj.0.1382763747293; Fri, 25 Oct 2013 22:02:27 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id a49si575551yhc.5.2013.10.25.22.02.27 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Oct 2013 22:02:27 -0700 (PDT) Received: from kaki.bld.corp.google.com (kaki.bld.corp.google.com [172.29.216.32]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id 27A6031C2D2; Fri, 25 Oct 2013 22:02:27 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id C6680220119; Fri, 25 Oct 2013 23:01:42 -0600 (MDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Fri, 25 Oct 2013 23:01:32 -0600 Message-Id: <1382763695-2849-3-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.4.1 In-Reply-To: <1382763695-2849-2-git-send-email-sjg@chromium.org> References: <1382763695-2849-2-git-send-email-sjg@chromium.org> Cc: Tom Rini <trini@ti.com>, u-boot-review@google.com Subject: [U-Boot] [PATCH v3 2/5] Make 'run' use run_command_list() instead of run_command() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <http://lists.denx.de/mailman/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <http://lists.denx.de/mailman/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de |
diff --git a/common/main.c b/common/main.c index 6f475f0..6650293 100644 --- a/common/main.c +++ b/common/main.c @@ -1544,7 +1544,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;
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 <sjg@chromium.org> --- Changes in v3: None Changes in v2: - Add new patch to adjust 'run' command to better support testing common/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)