[PATCH] shell: fill in tremendous $(()) evaluator miss
Steffen Nurpmeso
steffen at sdaoden.eu
Thu Aug 11 14:25:17 UTC 2022
Steffen Nurpmeso wrote in
<20220811141842.il4q6%steffen at sdaoden.eu>:
...
P.S.: we are of course in the field of things which are beyond
standard definitions. And there _are_ bugs in the bash evaluator,
on the same precedence level as i have shown:
$ bash -c ' I1=I2=10 I2=5 I3=I2+=1; echo "<$(( I1*=1?I1:I3 ))>";echo "<$I1><$I2><$I3>"'
<100>
<100><10><I2+=1>
$ bash -c ' I1=I2=10 I2=5 I3=I2+=1; echo "<$(( I1=1?I1:I3 ))>";echo "<$I1><$I2><$I3>"'
<10>
<10><10><I2+=1>
...
|Now, this is ridiculous. I am sorry for that.
Sigh!!
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
More information about the busybox
mailing list