bug-bash
[Top][All Lists]
Advanced

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

Re: Number with sign is read as octal despite a leading 10#


From: Eduardo Bustamante
Subject: Re: Number with sign is read as octal despite a leading 10#
Date: Tue, 10 Jul 2018 15:12:08 -0700

On Tue, Jul 10, 2018 at 1:57 PM, Isaac Marcos
<address@hidden> wrote:
> Chet Ramey (<address@hidden>) wrote:
[..]
> This is not a serious argument.
[...]
> I don't care. All other shells do this correctly. It makes you the only one
> wrong.
>
> This is not a serious discussion.

Can you keep the discussion civil? I don't get why you feel compelled
to qualify an argument from the main developer as "non serious".

What's your definition of "correct"? According to Chet, the definition
is the same as the ISO C standard. I'm not sure if there's a public
version of the ISO C standard document, but
http://c0x.coding-guidelines.com/6.4.4.1.html seems to be good enough.
The definition of an "integer constant" in that document does not
include a sign.

So, in that regard, Bash is behaving according to specification.



reply via email to

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