Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14323 > unrolled thread

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

Started byEduardo Bustamante <dualbus@gmail.com>
First post2018-07-10 15:12 -0700
Last post2018-07-10 15:12 -0700
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Number with sign is read as octal despite a leading 10# Eduardo Bustamante <dualbus@gmail.com> - 2018-07-10 15:12 -0700

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

FromEduardo Bustamante <dualbus@gmail.com>
Date2018-07-10 15:12 -0700
SubjectRe: Number with sign is read as octal despite a leading 10#
Message-ID<mailman.3398.1531260755.1292.bug-bash@gnu.org>
On Tue, Jul 10, 2018 at 1:57 PM, Isaac Marcos
<isaacmarcos100010@gmail.com> wrote:
> Chet Ramey (<chet.ramey@case.edu>) 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.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web