[PATCH] Fix some documentation errors

2024-12-28 Thread Lawrence Velázquez
Also replace "behaviour" with "behavior", which the project prefers. This applies on top of commit bb56d620e075e3c96ae84b52de6b74683d9ab320, the current tip of the devel branch. --- CHANGES | 14 +++--- CHANGES-5.3 | 14 +++--- NEWS

Re: Logical expression works does not work as expected

2024-12-28 Thread Greg Wooledge
On Sat, Dec 28, 2024 at 15:23:41 -0500, Lawrence Velázquez wrote: > On Fri, Dec 27, 2024, at 6:47 PM, Greg Wooledge wrote: > > You might have been raised on some other language where the && and || > > operators have different precedence. In the shell language, they have > > the same precedence. >

Re: Logical expression works does not work as expected

2024-12-28 Thread Lawrence Velázquez
On Fri, Dec 27, 2024, at 6:47 PM, Greg Wooledge wrote: > You might have been raised on some other language where the && and || > operators have different precedence. In the shell language, they have > the same precedence. However, the && and || arithmetic operators do have C-like precedence.

Re: Logical expression works does not work as expected

2024-12-28 Thread Chet Ramey
On 12/27/24 4:52 PM, Павел Fortovey wrote: I apologize. I found out that this behavior is not a bug. I didn't think that bash is such a strange scripting language with its own interpretation of the concept of logic. AND-OR lists are left-associative and || and && have equal priorit