|
From: | Chet Ramey |
Subject: | Re: Possible bug in bash |
Date: | Tue, 17 May 2022 11:32:20 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 |
On 5/13/22 10:36 PM, Dale R. Worley wrote:
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
Yes, this is correct. -- ``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/
[Prev in Thread] | Current Thread | [Next in Thread] |