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 c...@case.edu http://tiswww.cwru.edu/~chet/