[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test arithmetic operators print a incorrect error message
From: |
Chet Ramey |
Subject: |
Re: test arithmetic operators print a incorrect error message |
Date: |
Fri, 17 Jun 2022 16:02:35 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 |
On 6/15/22 2:25 PM, Emanuele Torre wrote:
Bash Version: 5.1
Patch Level: 16
Release Status: release
Description:
test's arithmetic operatiors print an incorrect error message
when one of operands is not an integer.
It says "integer expression expected" even if it simply expects
an integer, not an expression ([['s arithmetic operators do
expect an expression, but test's don't).
Thanks for the report. I'll do something here after bash-5.2 is released.
--
``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/