Message ID | 1372106765-18401-3-git-send-email-sjg@chromium.org |
---|---|
State | Superseded |
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 6F9BD2C0096 for <incoming@patchwork.ozlabs.org>; Tue, 25 Jun 2013 06:46:52 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 14C344A03F; Mon, 24 Jun 2013 22:46:50 +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 qQZtQEyfSkrN; Mon, 24 Jun 2013 22:46:49 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6726B4A040; Mon, 24 Jun 2013 22:46:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 98C2A4A03F for <u-boot@lists.denx.de>; Mon, 24 Jun 2013 22:46:39 +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 nJkKVHY4NKxg for <u-boot@lists.denx.de>; Mon, 24 Jun 2013 22:46:34 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ve0-f201.google.com (mail-ve0-f201.google.com [209.85.128.201]) by theia.denx.de (Postfix) with ESMTPS id 627EA4A099 for <u-boot@lists.denx.de>; Mon, 24 Jun 2013 22:46:25 +0200 (CEST) Received: by mail-ve0-f201.google.com with SMTP id ox1so1300856veb.0 for <u-boot@lists.denx.de>; Mon, 24 Jun 2013 13:46:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=WPJeuKA9/rCwNUjgLYR43+cN/TMm/mcAR1zyphjVy3g=; b=RuxVCzbN3wFsYI33QPazblBrxKKvnmQWOqC10ybOOPDulPqfsX8Tw9gouzXOroQzpJ lN+c8lf7VuqBgm0uowCsXb/wZS141N/Ka56yuHLdVSxc6lTjxADDax/31kmb5846wZSn MqIveVqV9/CPC+OJSxbriLazttmPrJ4/gFutuKs6TOffVlqX1xgTPMVEhaEZhs/CpksD maMow4uJZhmTzRlg4tU2BVYBrLGb1aq71htVgiwuCiNJxyUW0Vt7P7XTm974pmM99IA/ yy+PxwWghCxeeAUsSCIWFiIzgFD6VI7yZnqr0ja0ex+WcxWKjurh2yzUMXpj1SgYYJIB J7og== X-Received: by 10.236.133.19 with SMTP id p19mr14531297yhi.54.1372106783817; Mon, 24 Jun 2013 13:46:23 -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 t25si9867904yhg.6.2013.06.24.13.46.23 for <multiple recipients> (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Mon, 24 Jun 2013 13:46:23 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.83.1]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id A528331C2C6; Mon, 24 Jun 2013 13:46:23 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 5BB3B160A4A; Mon, 24 Jun 2013 13:46:23 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Mon, 24 Jun 2013 13:46:02 -0700 Message-Id: <1372106765-18401-3-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.3 In-Reply-To: <1372106765-18401-1-git-send-email-sjg@chromium.org> References: <1372106765-18401-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQkhHLgP6vMc3OqduWfN9fJT1fa62wsfeJ5LU73/SkWnS+coZyUvG+T7u/5WxRFIJvIvYpVV8uIR14WnRWKy7TWUdESmq3wOkDX+qRzqv8C6mZOCqcSRj30yAi/IQytY4+JX3r6Jc2D15/EIdNpT3AC9ujT3DSPYLlRwkxyOn+Ex7KqNm3ks82VFCwo0sqt7+1hNFUja Cc: Tom Rini <trini@ti.com>, u-boot-review@google.com Subject: [U-Boot] [PATCH v2 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 56da214..3b7f2f7 100644 --- a/common/main.c +++ b/common/main.c @@ -1560,7 +1560,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 v2: - Add new patch to adjust 'run' command to better support testing common/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)