29 Jul
2022
29 Jul
'22
04:56
On 7/28/22 23:44, Andrei Borzenkov wrote:
On 29.07.2022 06:27, David C. Rankin wrote:
But those are just hints, nothing prevents myint="mystring".
bor@bor-Latitude-E5450:~$ a="1+2" bor@bor-Latitude-E5450:~$ echo $a 1+2 bor@bor-Latitude-E5450:~$ declare -i b bor@bor-Latitude-E5450:~$ b="1+2" bor@bor-Latitude-E5450:~$ echo $b 3 bor@bor-Latitude-E5450:~$
Chuckling -- good example, but with b="mystring", echo $b would still by "mystring" ;-) -- David C. Rankin, J.D.,P.E.