[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCHv2] shell: exchange Dijkstra $(( )) evaluator..
From:       Steffen Nurpmeso <steffen () sdaoden ! eu>
Date:       2022-08-10 22:55:12
Message-ID: 20220810225512.rRIy1%steffen () sdaoden ! eu
[Download RAW message or body]

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)
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic