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 979D4C433EF for ; Tue, 19 Oct 2021 16:20:44 +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 BC51B61052 for ; Tue, 19 Oct 2021 16:20:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BC51B61052 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 74AC582DF7; Tue, 19 Oct 2021 18:20:41 +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=1634660441; bh=EBYjpzVUdXXjnutBYu4dFN3ffN1lH3LdouosOvOUK/g=; h=To:cc:From:Subject:In-reply-to:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=F48Y5+pVFC13i4izNRkCymibDFCc1AwOdoU6T4mUSQKc0Vj3al93zK7ui0Ku1CvyZ HPXuMdgJ0p9Cg/h2ptIn4uP5mQyqusmlZDD/zsfKovMzQw3ULmIWy07+nZ54uNcgDy RZdzyo2Y35CjW9uFqMHwBR/Iy2nXSRpd2/TrejM3lpiX70DBAbS81vj2swjQCAMpi4 kSW84kklSUu6ClDR/G3pCv9qKz7eBEkMowSe5vIozjprl83oL13/7oiaJfoSx1oSm/ p7cbhmZn99fXi7vjpMQkPe54qj+xZ80YBYX0mOW3dvSxMvHGPHrIii//3Y1rs+9HFZ nZVdqGnCY29Pw== 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 3B27D82DF7 for ; Tue, 19 Oct 2021 18:20:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1634660439; bh=EBYjpzVUdXXjnutBYu4dFN3ffN1lH3LdouosOvOUK/g=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=CxbwRM28grGv7gGe9YfTl0TiyBARtPm1tnu/990WwhdA94UgYuR5li6cbj1pOl46m 2dYSHycOMWln45aE1TMP/S9vcwEOoEx5j5SLttwCJH1TXXtJeAy6GZJ6StL6/rPkRx 7iAnSUWPdGqV+kmEa0vrz18Vz/REsUMR4F9VQKQGh0VvKJ//JDieHge3Z/1txtrza7 x3rhxfG/a1u1+RylMgLAGfJHQGA5CuSiJ7kfwfxhf+2BkYPd6MHaZ02BFsRHtyseOi A7fhF+Hzu9SbxZhZ41tMp1tSrmjbBnObXGYKQwZlRnuuZBcXHir3tnwUxagOvuiRxW dR1y7rxXC71uw== Received: by janitor.denx.de (Postfix, from userid 108) id E559CA0275; Tue, 19 Oct 2021 18:20:38 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.4.0.2]) by janitor.denx.de (Postfix) with ESMTPS id 7B9BEA006F; Tue, 19 Oct 2021 18:20:30 +0200 (CEST) Received: from gemini.denx.de (localhost [IPv6:::1]) by gemini.denx.de (Postfix) with ESMTP id 1F3741E0F1B; Tue, 19 Oct 2021 18:20:30 +0200 (CEST) To: Simon Glass cc: Tom Rini , U-Boot Mailing List , Rasmus Villemoes , Heinrich Schuchardt , Joe Hershberger From: Wolfgang Denk Subject: Re: [PATCH v8 4/8] 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: <20211018181322.1181847-1-sjg@chromium.org> <20211018121315.v8.4.Ie78bfbfca0d01d9cba501e127f446ec48e1f7afe@changeid> <20211019140711.GC7964@bill-the-cat> <20211019142529.GE7964@bill-the-cat> Comments: In-reply-to Simon Glass message dated "Tue, 19 Oct 2021 09:31:51 -0600." Date: Tue, 19 Oct 2021 18:20:30 +0200 Message-ID: <3573814.1634660430@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: > > But how do we handle this? > > var+=fred > > Is this appending to var or assigning to var+ ? It is assigning to "var+". > > var++=fred > > is unambiguous but very confusing. I think it would be better to disallow + It's neither unambiguous nor confusing. It is assigning to "var++". I think we should not change what is old and might be in use. It is much easier to change what is new and can be defined at will. If we define for example that "=+" appends, then we can also define our own escape rules, for example: var=fred assigns var=+fred appends "fred" var=\+fred assignes the value "+fred" var=++fred appends "+fred" 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 Monday is an awful way to spend one seventh of your life.