On 7/9/18 9:24 PM, Isaac Marcos wrote:
> Bash Version: 4.4
> Patch Level: 12
> Release Status: release
>
> Description:
> A value inside an arithmetic expansion is processed as octal despite using
> a 10# preffix.
An integer constant cannot contain a `+'.
>
> Repeat-By:
> $ echo $((10#+0034))
> 28
If anything, this is bash being too liberal in accepting constants that
begin with `base#'. There would be a good case for rejecting the `10#'
because it's missing the value.
--
``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/