[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arithmetic expression: recursive VAR evaluation suppresses desired V

From: Steffen Nurpmeso
Subject: Re: Arithmetic expression: recursive VAR evaluation suppresses desired VAR assignment
Date: Thu, 11 Aug 2022 16:04:57 +0200
User-agent: s-nail v14.9.24-284-gd57ba63239

Robert Elz wrote in
 |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

 |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.

|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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]