On 9/19/23 3:40 AM, Victor Pasko wrote:
Thanks for your response.
In my opinion, in let "<>" and $((<>)) constructs all variables should be
evaluated, so that $-sign for them is to beĀ just optional
They are, in places where identifiers are valid. In fact, variable values
are treated as expressions and evaluated recursively:
"Within an expression, shell
variables may also be referenced by name without using the parameter
expansion syntax. A shell variable that is null or unset evaluates to
0 when referenced by name without using the parameter expansion syntax.
The value of a variable is evaluated as an arithmetic expression when
it is referenced"
Integer constants are not one of the places where identifiers are valid.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/