[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: math operations with base#prefix
From: |
Chet Ramey |
Subject: |
Re: math operations with base#prefix |
Date: |
Tue, 19 Sep 2023 09:15:16 -0400 |
User-agent: |
Mozilla Thunderbird |
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 chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: math operations with base#prefix, (continued)
- Re: math operations with base#prefix, Robert Elz, 2023/09/19
- Re: math operations with base#prefix, Kerin Millar, 2023/09/19
- Re: math operations with base#prefix, Robert Elz, 2023/09/19
- Re: math operations with base#prefix, Kerin Millar, 2023/09/19
- Re: math operations with base#prefix, alex xmb ratchev, 2023/09/19
- Re: math operations with base#prefix, Kerin Millar, 2023/09/19
- Re: math operations with base#prefix, alex xmb ratchev, 2023/09/19
- Re: math operations with base#prefix, alex xmb ratchev, 2023/09/19
- Re: math operations with base#prefix, Kerin Millar, 2023/09/19
- Re: math operations with base#prefix, alex xmb ratchev, 2023/09/19
- Re: math operations with base#prefix,
Chet Ramey <=