From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 177D0C433F5 for ; Tue, 26 Oct 2021 10:16:12 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 072DC6109E for ; Tue, 26 Oct 2021 10:16:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 072DC6109E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E6572833B1; Tue, 26 Oct 2021 12:16:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1635243368; bh=qIYvAOtYZrnQfEeppxYbeA+/JXSgY0S7+v9HNQSWyuY=; h=To:cc:From:Subject:In-reply-to:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=qrMv2XXm1LtX0xSZ9sk1DPixiqOwTxYstpXsKtLKo4mtyel0/tH0F4kutbVDRdg3w xhPvoI9rfyD2G7aKo20UwYdCw3TOo2SyfnfSySfPMylIrS7GJ9LyJjM9L/WIlzOV1t 2+5nOKYnbSp6N1VVfKLJwWrpUfGiguGHhFBkzLSxgUUQTFjin/Mk0FjjXY18OwPpCo Z6XsMtQ2w878IYx6VVfIfMWBd3tnYeediwfHPeTyr0GG1XBzDOrIA4GuWScBXTgwiU bkJQRfTSP2dd9NKTKanmltPX4EfZCooCxTs7RWQAKgaAEkzu2At2VTgcG3woomC2ck Tg9O2KWr+P75w== Received: from janitor.denx.de (unknown [62.91.23.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D8C8D81197 for ; Tue, 26 Oct 2021 12:16:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1635243364; bh=qIYvAOtYZrnQfEeppxYbeA+/JXSgY0S7+v9HNQSWyuY=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=PXZ8Tts4pqYb4asUhamI3Lj+aHzGZD7C3YRdWUeRpIvSFgT8Mh87+EGHmdmLaxata us/DsCkBP18fXAYR2+OzIsDlViThk8RpUtASAZFuqSRFPfyydlcYuS8hO355J0sUrh 0XnwKj8dEI746CzmjUDl7T+HSDwiDy/2x2YVzil+fnoAxfaemBJ4J5T9mroN+8zw/M VRxiDLs0i6CZaRCnyAoWPg40twH8owxw9MHF57MwNICboEbJJHrYA+qlddh26/NAMY 6d4zUylXT9wm/MmjDpBfFX/199emTTzAehK28MuvJQlVDLFIunHcZTz3W2uR+0azev oEiPxY8uqXAHA== Received: by janitor.denx.de (Postfix, from userid 108) id 40A57A02C5; Tue, 26 Oct 2021 12:16:04 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.4.0.2]) by janitor.denx.de (Postfix) with ESMTPS id AFE3DA009C; Tue, 26 Oct 2021 12:15:56 +0200 (CEST) Received: from gemini.denx.de (localhost [IPv6:::1]) by gemini.denx.de (Postfix) with ESMTP id 440311E0F1B; Tue, 26 Oct 2021 12:15:56 +0200 (CEST) To: Simon Glass cc: Rasmus Villemoes , Tom Rini , =?UTF-8?B?TWFyZWsgQmVow7pu?= , U-Boot Mailing List , Heinrich Schuchardt , Joe Hershberger From: Wolfgang Denk Subject: Re: [PATCH v9 3/7] env: Allow U-Boot scripts to be placed in a .env file MIME-Version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8bit In-reply-to: References: <20211019224422.1447059-1-sjg@chromium.org> <20211019164418.v9.3.Ie78bfbfca0d01d9cba501e127f446ec48e1f7afe@changeid> <3682215.1634809802@gemini.denx.de> <20211021122325.GX7964@bill-the-cat> <3695947.1634821611@gemini.denx.de> <20211021152537.441c37b9@thinkpad> <20211021152831.15524883@thinkpad> <20211021160311.GC3577824@bill-the-cat> <4a7d69cd-b4d0-779d-d3f3-2ddfc3e15d27@prevas.dk> Comments: In-reply-to Simon Glass message dated "Mon, 25 Oct 2021 09:18:46 -0600." Date: Tue, 26 Oct 2021 12:15:56 +0200 Message-ID: <4002703.1635243356@gemini.denx.de> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Dear Simon, In message you wrote: > > > > We need the space between the bootargs. > > > > Exactly like that, and for the case where you want to append something > > _without_ an extra space there's the .=3D operator I also suggested. > > Do you have a link to the docs for that? > > Perhaps we should get this initial thing in and we can take it from > there. I expect that as we start to convert more environments we'll > find more things we need. I think it is not a good idea to use two different operators for the same appand operation, just to add a space in one case. So assume I want to start the appended part with a TAB character, would we define another operator then? We have problems with escaping characters for the variable _name_ part, but not for the value. We can for example use standard shell escape rules, like: foo += bar foo += \ bar foo += ' bar' Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de "There is no statute of limitations on stupidity." - Randomly produced by a computer program called Markov3.