From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 6 Nov 2020 15:58:21 -0500 Subject: [PATCH 10/10] setexpr: Add support for strings In-Reply-To: References: <20201101211544.3579850-1-sjg@chromium.org> <20201101211544.3579850-11-sjg@chromium.org> <20201102000824.10fb538c@nic.cz> <20201103173011.08e22c11@nic.cz> Message-ID: <20201106205821.GI5340@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Nov 05, 2020 at 10:27:25AM -0700, Simon Glass wrote: > Hi Marek, > > On Tue, 3 Nov 2020 at 09:30, Marek Behun wrote: > > > > On Tue, 3 Nov 2020 08:12:17 -0700 > > Simon Glass wrote: > > > > > Hi Marek, > > > > > > On Sun, 1 Nov 2020 at 16:08, Marek Behun wrote: > > > > > > > > What is the purpose of + operator on strings? > > > > Can't we use setenv "${a}${b}" ? > > > > > > Yes, that does the same thing, although it is a bit clumsy. > > > > > > setenv a *10 > > > setenv b *100 > > > setenv c "${a}${b}" > > > > > > instead of > > > > > > setexpr c *10 + *100 > > > > Hi Simon, > > > > I don't know. It provides the same functionality that exists, but only > > adds code. > > Is someone really going to use this? > > I don't know. Perhaps we can wait and see if anyone cares? Sorry, does that mean this support is just speculative? Or did I misread this part of the thread? Thanks. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: