On Thu, Jul 25, 2019 at 10:29:08AM -0700, L A Walsh wrote:
> On 2019/07/24 11:49, Greg Wooledge wrote:
> > $((expression))
> >
> > The expression is treated as if it were within double quotes,
> I didn't use $((...)), I'd put the whole thing in ((...)) which I hoped
> would treat the whole expression consistently.
((expression))
The expression is evaluated according to the rules described be‐
low under ARITHMETIC EVALUATION.
[...]
ARITHMETIC EVALUATION
[...]
Shell variables are allowed as operands; parameter expansion is per‐
formed before the expression is evaluated.