bug-bash
[Top][All Lists]
Advanced

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

Re: fltexpr LAND && LOR || broken


From: Chet Ramey
Subject: Re: fltexpr LAND && LOR || broken
Date: Wed, 25 Feb 2026 09:14:12 -0500
User-agent: Mozilla Thunderbird

On 2/25/26 6:46 AM, newsbash--- via Bug reports for the GNU Bourne Again SHell wrote:

fltexpr is great! Speeds up scripts enormously! Trying to use it
everywhere possible.

Using bash 5.3.9(1) I am now running into a problem that fltexpr does
not recognize logical AND (LAND &&) and OR (LOR ||). Example:
if fltexpr "((2 > 1) && (6 > 5))"; then echo 'ok';fi
I get an error message: 'Error token is &&'

Thanks for the report. This was fixed in the bash devel branch back
in November.


--
``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/



reply via email to

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