
5 Nov
2020
5 Nov
'20
5:47 p.m.
Dear Simon,
In message CAPnjgZ3SXdKaKmYCw=Q0w-JGhghAPVhwHdtG5q2dNEMNiY60Xg@mail.gmail.com you 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
I don't get it. The equivalent to "${a}${b}" would be
setexpr c "*10*100"
which is even simpler?
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
"You know, after a woman's raised a family and so on, she wants to
start living her own life." "Whose life she's _been_ living, then?"
- Terry Pratchett, _Witches Abroad_