[PATCH 10/10] setexpr: Add support for strings

Simon Glass
2020-11-03T15:12:17Z

Hi Marek,

On Sun, 1 Nov 2020 at 16:08, Marek Behun <marek.behun@nic.cz> 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

Regards,
Simon