bug-bash
[Top][All Lists]
Advanced

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

Re: $((expr)) allows the hexadecimal constant "0x"


From: Chet Ramey
Subject: Re: $((expr)) allows the hexadecimal constant "0x"
Date: Thu, 29 Jun 2023 16:13:37 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

On 6/29/23 1:17 PM, Steffen Nurpmeso wrote:

I now only wondered why you did not also mention the bash bug

   $ echo $((0?2/0:7))
   7
   $ echo $((0?2**-1:7))
   -bash: 0?2**-1:7: exponent less than 0 (error token is ":7")

Probably because it doesn't have anything to do with hex constants?
Thanks for reporting it, though.

Chet

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