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 98A60C433EF for ; Thu, 21 Oct 2021 16:03:33 +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 EC3E460ED5 for ; Thu, 21 Oct 2021 16:03:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EC3E460ED5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com 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 E85B7834B0; Thu, 21 Oct 2021 18:03:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="eZMeUWhl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 77E358048A; Thu, 21 Oct 2021 18:03:26 +0200 (CEST) Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1341A834A2 for ; Thu, 21 Oct 2021 18:03:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2f.google.com with SMTP id gh1so711228qvb.8 for ; Thu, 21 Oct 2021 09:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yX/5Ywet7FPzrY69i5u0eG5cUHZIYAYuvVV33YZsCjM=; b=eZMeUWhlks6xHWlOIkxZUBkBZVepe16YlXiBmcp+qcKaHMZJsPiiDI8Dv0TpHYD2Ww AyFSdSmXL8UUQ1WajXkMfMGLow5HGiQi9LW4ZyRMckxl7XUvF6dN1lX76S0yu72kE1pu ZdTP5x6arZWZI6uYwhgSsNmMTJWUiifOP94Os= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yX/5Ywet7FPzrY69i5u0eG5cUHZIYAYuvVV33YZsCjM=; b=5Jg5+HSEMx2c+hzgSnaUUtosaXC/8/GDS+SohuHq59RNO+xcQhM3G3E3s12zsP3sJ5 ma798Oc9rQqDjCd4D7SZT5jYi7cLISSXe0LcjzCSIbAV34enoD9eWWLmzq52KziC/kba pDceMaqOFdjrFFgtTV/4pXYcYAVKMTgygMsLCjd/fuLF+TJDsAtXCR3HzGRIFaMfrwbF HHJ8339brLv6grIEmh+ALt9AUNYiviBnFyhM/QtQ1Lumo97C9to/0dEGz2QxQAa/gbSL Yr03/ivCgsKWl8rirNZKF3fztNB/Lu9K9U360AEra3Rs1EIMx+wXMMGkvVaCRmNN5yP3 dogQ== X-Gm-Message-State: AOAM532Q9xl7nbB5spBMCxrLhmpWNt9+a/kcdhZ4ypK0nB4ShN8WZT1t 1qnoKnqwOz7uS2yZQXu45vP+gQ== X-Google-Smtp-Source: ABdhPJzsqm6xQQQA/gUTvfFk2yug9ofFjayipn80HC9/CJEySfLPt8clUAALHP+hbLlSmjonpjNjJQ== X-Received: by 2002:ad4:5be1:: with SMTP id k1mr5938966qvc.6.1634832193704; Thu, 21 Oct 2021 09:03:13 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-2501-70e1-0160-7cd3.res6.spectrum.com. [2603:6081:7b01:cbda:2501:70e1:160:7cd3]) by smtp.gmail.com with ESMTPSA id bm16sm2760778qkb.86.2021.10.21.09.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 09:03:13 -0700 (PDT) Date: Thu, 21 Oct 2021 12:03:11 -0400 From: Tom Rini To: Simon Glass Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , Wolfgang Denk , U-Boot Mailing List , Rasmus Villemoes , Heinrich Schuchardt , Joe Hershberger Subject: Re: [PATCH v9 3/7] env: Allow U-Boot scripts to be placed in a .env file Message-ID: <20211021160311.GC3577824@bill-the-cat> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GPJrCs/72TxItFYR" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett 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 --GPJrCs/72TxItFYR Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 21, 2021 at 09:59:38AM -0600, Simon Glass wrote: > Hi Marek, >=20 > On Thu, 21 Oct 2021 at 07:28, Marek Beh=FAn wrote: > > > > On Thu, 21 Oct 2021 15:25:37 +0200 > > Marek Beh=FAn wrote: > > > > > Hello, > > > > > > On Thu, 21 Oct 2021 15:06:51 +0200 > > > Wolfgang Denk wrote: > > > > > > > I confirm that '+=3D' looks better. But '+=3D" is technically brok= en. > > > > > > a bit of my opinion: > > > I think =3D+ will confuse far more people than + as last character of= var > > > name working weirdly. But I also think that + should be supported as > > > last character. Therefore I propose backslash escaping in variable na= me, > > > i.e. > > > var+=3Dvalue > > > appends value to var, while > > > var\+=3Dvalue > > > sets variable with name "var+" >=20 > My first preference is to disallow + at the end of an end var. Perhaps > we can start printing a warning if people do it, for a few releases. >=20 > My distance second preference is what Marek has here, using a > backslash to escape the + character. How bad does it make the parser look if we allow trailing + in variable names, by escaping them? It's seemingly the substantive objection at this point. --=20 Tom --GPJrCs/72TxItFYR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFxjzgACgkQFHw5/5Y0 tyyb8gv9HBoOtL+JEO33Y0skvIJBAWWEyytwTfb/rzC077o/TelfKHiyLodADrXX wDjrPMpL+zxy9tvGGJGJbXsTsZsxAfPgE6Z4GaEkigzbYFgmjSfDW6SZt9DTUyVh 3PEsqz7UcnL5Nrzo9Ytb//izZnXN58vMtd3WEZeboxOkcsP6bU9yn4xYA8kDCHPD EdttGaiHSPS/NzM8APf0EWpuHFPefio0TZzJ42P0H3oJqD/U8z/UnjH1qLRBUR75 1fjBlt0VWSOSV1aiFpNQ9PdMqTUwDzUl5RDEyCsnWA/+Huo1k9eAtr3CR6rWRXrE eRhPhNIrnLeGbuwjBu0tU91RbROhwEPKnyhJlpZVZUgG1PyMC5h9EcOeE8GWTyLZ UBX1B6wQdZAfRZXDGu6dy7+qCqdn8qp2+Wapak7CyDmwwAvKin9Zg3pkRWX9ixCH CpZpAz8UK/18NjRSAAusknrHXzD85WooJcbXoTnKlTNARyfC1BeNHshgNocsr7P8 df98naFz =phGf -----END PGP SIGNATURE----- --GPJrCs/72TxItFYR--