bug-bash
[Top][All Lists]
Advanced

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

Re: [EXT] Re: Bash 5.1: rl_readline_version = 0x801 (shouldn't it be 0x0


From: Greg Wooledge
Subject: Re: [EXT] Re: Bash 5.1: rl_readline_version = 0x801 (shouldn't it be 0x0801 ?)
Date: Tue, 8 Dec 2020 07:40:25 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

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.



reply via email to

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