bug-bash
[Top][All Lists]
Advanced

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

Re: expression evaluation problem


From: Greg Wooledge
Subject: Re: expression evaluation problem
Date: Thu, 25 Jul 2019 13:34:08 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

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.



reply via email to

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