[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] shell: fill in tremendous $(()) evaluator miss
From: Steffen Nurpmeso <steffen () sdaoden ! eu>
Date: 2022-08-11 14:25:17
Message-ID: 20220811142517.-X8Pr%steffen () sdaoden ! eu
[Download RAW message or body]
Steffen Nurpmeso wrote in
<20220811141842.il4q6%steffen@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)
_______________________________________________
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