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 EF6C1C433EF for ; Tue, 19 Oct 2021 16:09:16 +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 5E94560F02 for ; Tue, 19 Oct 2021 16:09:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5E94560F02 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 9607C82DB4; Tue, 19 Oct 2021 18:09:14 +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=1634659755; bh=U4RJ0fKyBZg5VVGxmNAgY0ZL7AvlQFTAwugwDwLldYg=; h=To:cc:From:Subject:In-reply-to:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=dQ0mX47ZXGZpacHRz2UTnH7ZsMdWygD9iCvM5Wf0B338i1fbP9PdLDhS2l5oXiwdT a10+quCkL3F720JF5DKAJiYytSCIyLRDTFc/2DQFGDdnV1ZJ/+Uny6Lu/H4Bc6bEGm faVxfJgsAGE/31qkRaLbmI+O6jPPAKfgID1ujk7d1yZRP5wNmEXULFjNoqzZLD18kS 9FHePmGwYQUqTcC9FtjHUnp2xSuaVa8t2SPEY+529f3xQJwz1UxXKDW7y1YFbTLSI2 4LQUXyEgpoUafRvBz73BC/WDNvj+71cAmSo8R8jKphwF6sFw124rK8h41qh5vW0cKP nld/rv6a0Ob9Q== 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 EBB91805F9 for ; Tue, 19 Oct 2021 18:09:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1634659753; bh=U4RJ0fKyBZg5VVGxmNAgY0ZL7AvlQFTAwugwDwLldYg=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=ZmxB3sTQ+/iMJ24SfV7UjcJ3U4+SaEKeXyGLR0NiW3+zRQBl1JZbIK1b50KNFOAbC +HqdWLwkWKfF5k8uP1eZcRbVz48ZVgqYvmdL1WkS+4BKb86xkh883pkl5a16QqO2by AoeAMcA/oBKGhaB2n8hLnqKKe2cB2ZbEsps9H6StYDcV301ChS8mzu48NFkNcIQA9c iHkQjzkmF8qsZU+34ZBDp9XtA6YweZwaZ/rYyM2v2iKWIg9xQeItezvJMsIcV+LGW7 LhTMZ5Ua+SjJQj+jYFEsB9wEo8vQ4G1Qje1KNldvxCj+p+DKR5QVFHvwW3Tf1VZ//q Rdnl9b7axw/3g== Received: by janitor.denx.de (Postfix, from userid 108) id A1971A0215; Tue, 19 Oct 2021 18:09:12 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.4.0.2]) by janitor.denx.de (Postfix) with ESMTPS id 96CC1A006F; Tue, 19 Oct 2021 18:09:03 +0200 (CEST) Received: from gemini.denx.de (localhost [IPv6:::1]) by gemini.denx.de (Postfix) with ESMTP id 8549F1E0F1B; Tue, 19 Oct 2021 18:09:03 +0200 (CEST) To: Simon Glass cc: U-Boot Mailing List , Heinrich Schuchardt , Tom Rini , Joe Hershberger From: Wolfgang Denk Subject: Re: [PATCH v6 4/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: <20211014182257.468649-1-sjg@chromium.org> <20211014122254.v6.4.Ie78bfbfca0d01d9cba501e127f446ec48e1f7afe@changeid> <3341802.1634308345@gemini.denx.de> <3496103.1634558337@gemini.denx.de> <3546427.1634640369@gemini.denx.de> Comments: In-reply-to Simon Glass message dated "Tue, 19 Oct 2021 08:11:37 -0600." Date: Tue, 19 Oct 2021 18:09:03 +0200 Message-ID: <3573552.1634659743@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: > > I thought you were trying to use + at the end of a variable. > > I used: > > fred\+=aaa > > and got > > cc1: warning: unknown escape sequence: '\='' > > You can try it yourself by editing sandbox.env in the > u-boot-dm/env-working tree. Hmmm... -> cat foo.c #define A ampersand #define B berta foo\+=B; -> gcc -E foo.c # 0 "foo.c" # 0 "" # 0 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "" 2 # 1 "foo.c" foo\+=berta; -> cat bar.c fred\+=aaa -> gcc -E bar.c # 0 "bar.c" # 0 "" # 0 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "" 2 # 1 "bar.c" fred\+=aaa I do not see this problem... 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 I don't know if it's what you want, but it's what you get. :-) - Larry Wall in <10502@jpl-devvax.JPL.NASA.GOV>