Robert Elz wrote in <26517.1660182...@jacaranda.noi.kre.to>: |I would agree that the values bash is producing don't make a lot |sense, but I don't think you can say that either is correct - one |may be more desirable than the other, but that's it.
Hm. Well i agree that precedence rules which loose a construct completely (in that =5 is lost in I=5?I:J) is weird, but other than that there is a logical path to correctness. And my code still fails (unfortunately, and also just like others'). |Var expansion (not $I but just I) is defined for $(( )) only when |I contains a integer constant (optionally signed) - anything else |supported is an extension, and can be defined to work however the |implementor wants it to work. Well here i disagree. Of course plain integer is the only thing that is defined, but if you support recursive expansion, then that should work correctly, then. I still have your mail in my queue, it's been five weeks of which i spent more than two with that Dijkstra thing, but now i have NetBSD 9.3 to be installed, any maybe i can come back with a report also to you. --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)