bug-bash
[Top][All Lists]
Advanced

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

Re: test -lt inconsistent about white space


From: Chet Ramey
Subject: Re: test -lt inconsistent about white space
Date: Mon, 30 Oct 2023 11:09:09 -0400
User-agent: Mozilla Thunderbird

On 10/29/23 6:18 AM, Oğuz wrote:

legal_number was isint, which skipped both leading and trailing space
using the whitespace macro.

Yes, 30 years ago. legal_number switched to using strtol(3) in 1997
(bash-2.02) and strtoimax in 2002 (bash-2.05b).

The fact that this whitespace issue hasn't been reported since then shows
how obscure it is.

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