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

Chet Ramey <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Organization ITS, Case Western Reserve University
Message-ID <[email protected]>
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    [email protected]    http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc (application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE-----

wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCaXepDAUDAAAAAAAKCRC7WGnwZOp0q8Pn
AJ9qJYuiJuvvIVv3bvmyjEStw0E7vgCgm3DBueDhJFa3SKjWFadtRWNsLjU=
=V9QF
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.