[PATCHv2] shell: exchange Dijkstra $(( )) evaluator..
Steffen Nurpmeso
steffen at sdaoden.eu
Wed Aug 10 22:55:12 UTC 2022
Hm.
Sorry to cause more distress, but i ran into this:
$ bash -c ' I1=I2=10 I2=5 I3=I2+=1; echo "<$(( I1?I1:I3 ))>";echo "<$I1><$I2><$I3>"'
<10>
<I2=10><10><I2+=1>
$ s-nail -#:/ -Y 'set I1=I2=10 I2=5 I3=I2+=1;echo "<$(( I1?I1:I3 ))>";echo "<$I1><$I2><$I3>"' -Yx
<10>
<I2=10><10><I2+=1>
$ ../busybox sh -c ' I1=I2=10 I2=5 I3=I2+=1; echo "<$(( I1?I1:I3 ))>";echo "<$I1><$I2><$I3>"'
<6>
<I2=10><6><I2+=1>
$ diff- src/mx/shexp-arith.h /x/src/busybox.git/shell/shexp-arith.h
$ echo $?
0
That is interesting. I will investigate. (I have not run the
test with busybox again, actually. Why should i have done so?)
I hope this thread falls silent again soon.
Ciao, and a good night from Germany.
--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