Re: [EXT] Re: Bash 5.1: rl_readline_version = 0x801 (shouldn't it be 0x0
From:
Andreas Schwab
Subject:
Re: [EXT] Re: Bash 5.1: rl_readline_version = 0x801 (shouldn't it be 0x0801 ?)
Date:
Tue, 08 Dec 2020 14:16:53 +0100
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
On Dez 08 2020, Greg Wooledge wrote:
> On Tue, Dec 08, 2020 at 09:47:05AM +0100, Andreas Schwab wrote:
>> On Dez 07 2020, Testing Purposes wrote:
>>
>> > From an integer standpoint, I know that 08 (with one leading zero) is the
>> > same as 8.
>>
>> Nope, it is a syntax error.
>
> In a bash math context or in C, 08 is indeed a syntax error, as it is
> an octal integer constant with an invalid digit ("8").
>
> In mathematics, 08 is just 8.
This is all about C, so mathematics don't come into play.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."