[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: |
Mon, 11 Dec 2023 09:34:27 -0500 |
User-agent: |
Mozilla Thunderbird |
On 12/10/23 12:12 AM, Martin D Kealey wrote:
And sometimes Bash isn't the thing that needs fixing. Maybe the manual
needs to be clearer that "#" is not an "operator" like "+" or "/" but
rather part of an unsigned integer constant (and that "-" is NOT part of
such a constant).
That syntax is documented as part of the description of an integer
constant. The `+' or `-' operators aren't mentioned anywhere in that
description. `#' not listed in the table of arithmetic operators. The
`base#' is described as optional, while the `n' following it is not. How
much clearer do you want it to be?
--
``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/
OpenPGP_signature.asc
Description: OpenPGP digital signature
Re: $((expr)) allows the hexadecimal constant "0x",
Chet Ramey <=
Re: $((expr)) allows the hexadecimal constant "0x", Chet Ramey, 2023/12/11
Re: $((expr)) allows the hexadecimal constant "0x", Martin D Kealey, 2023/12/11