[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug in bash
From: |
Dale R. Worley |
Subject: |
Re: Possible bug in bash |
Date: |
Fri, 13 May 2022 22:36:56 -0400 |
Robert Elz <kre@munnari.OZ.AU> writes:
> Note particularly that there is no operator precedence between
> && and || - they are the same (unlike in C for example)
Reading your message, I believe that the rule can be stated as follows,
and I'd thank you to check it: && and || have the same precedence, and
they both "associate left". So for example
x && yy || zz
is equivalent (as a control structure) to
{ x && yy ;} || zz
Dale