On 12/3/25 7:59 AM, Robert Elz wrote:
     Date:        Wed, 3 Dec 2025 12:15:17 +0100
     From:        =?UTF-8?B?TMOpYSBHcmlz?= <[email protected]>
     Message-ID:  <[email protected]>

   | Ok then why does Bash parses the string value into float for the TMOUT

What makes you believe that it does?   Just that it doesn't generate an
error?   Can you actually detect the difference between a timeout of 3
seconds, and one of 3.14... seconds?

Bash dates from the days when if an integer value was expected in a
variable, its value would be obtained using atoi($VAR) (in effect).

The original code was like this, yes. The ability to specify fractional
seconds came in in bash-4.0, before bash started to pay attention to the
locale's decimal point (bash-5.0).

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/

Reply via email to