bug-bash
[Top][All Lists]
Advanced

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

Re: "echo $((0x))" is accepted, treated as 0x0


From: Chet Ramey
Subject: Re: "echo $((0x))" is accepted, treated as 0x0
Date: Mon, 26 Jan 2026 12:49:00 -0500
User-agent: Mozilla Thunderbird

On 1/23/26 9:10 PM, Denys Vlasenko wrote:
Good day.

The subject says it all.

This is a longstanding bash extension. You can compile bash with
-DSTRICT_ARITH_PARSING if you want this to be an error.


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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]