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


Groups > gnu.bash.bug > #14323

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

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Eduardo Bustamante <dualbus@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Number with sign is read as octal despite a leading 10#
Date Tue, 10 Jul 2018 15:12:08 -0700
Lines 23
Approved bug-bash@gnu.org
Message-ID <mailman.3398.1531260755.1292.bug-bash@gnu.org> (permalink)
References <CA+n9pTy7vSPUA0j-bDF9_eWF0XysePRDAFckgvvHX8haSWv7KQ@mail.gmail.com> <c8ae5df2-b6b3-438f-bd99-4618f6b2d3c0@Spark> <71850c03-54d3-6a7e-1d29-136950d9e139@iki.fi> <a0b100e7-3e14-e56e-8ffb-fcaeca587bf1@case.edu> <CA+n9pTwOZNdmWqEYwE5cDohArgvZ285vSt-F=hw=ZGb8weO2qA@mail.gmail.com> <471822f3-4484-59b5-0433-fc394dc9b34a@case.edu> <CA+n9pTzNU4stJykWKAJkPzwwrkmxzirWmuUT_xA9U=ZWsh3nMQ@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1531260756 14698 208.118.235.17 (10 Jul 2018 22:12:36 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash <bug-bash@gnu.org>, bash@packages.debian.org, Chet Ramey <chet.ramey@case.edu>
To Isaac Marcos <isaacmarcos100010@gmail.com>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DZ853nFdqpW8wOFUykTuXE482Fny403HzKQodfvlx9Q=; b=mGfMm6YY/Y2BHc2d2SrbsLeu2ZtUaUlVjgIqCKDvTDlXezrlmPsFEPCfoK3diaNY1y ckj62nkTSIJTgGqvGHJ5cwpbYT0XROMwzqu5zzEv2iF4FAH+btIALqpRd6QuX84AaatP fRIYygEdSzC0cZN+w1DJganeZKsmtxutMW2k7pbQhtZJrKMfqKOYgz3+veZktiVD/4qZ 8Yb/o+b8jvTSpD+jOAlQQ+ZIwPir663z2kVOAHMsduf2M3HmRVYl8bT+8n4xVNOTdpqp E78sUpIdK3tbPpopPRrZAGvR7vKiPmjwj+ubK5CB9Cw3IB8uTgBYMPohhBtiIA313S4R JsvQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DZ853nFdqpW8wOFUykTuXE482Fny403HzKQodfvlx9Q=; b=nw7JX0jitXInRVeURb44tjglYhlCbq5aS4gUJ4L7K7yLNBwVOi2yAAyx34FiSTxVJV vz3b1/tv/3CRjiJ/2uBqDtnywOFFT0v7VO5wSVAVLRj1UPaUhVh7QoBEhW8OzzAngUoq vuxCBF6hNJe4Npxp7h4ujaGfDcv804r9c/ya8W5xbcBZYYfdWiHGHa3y/hd906jnbog8 EKBKjpCT9dbrdMV/YBS67gWosizwsppJpMrtU1if9jzwQxwBN5Rh4LsykokjPEyluhxs UVCZLyKhFBjf94ZbQTKK8/kDoXSWYLESWIHarFD1VPnMGcM8psrMEqhO3IX4cMw9sagz BSHw==
X-Gm-Message-State APt69E32usb5rlmk2FJlm/eY9tlPU13hBbxZI0UvcPr80Mu5BfDa+7rD 2AlMCLz2ya82By4modKuoM9SdeihRmQr/0L9kqo=
X-Google-Smtp-Source AAOMgpeFH0ng7+tHtDrD++MB/QK6kNwL+AI6OIIHfmRiSznB9+4YdkeJ+DLcyw3nB9YYnFsvH2ynbL5GsRLoSc+6Ygc=
X-Received by 2002:a19:d890:: with SMTP id r16-v6mr3888719lfi.7.1531260749306; Tue, 10 Jul 2018 15:12:29 -0700 (PDT)
In-Reply-To <CA+n9pTzNU4stJykWKAJkPzwwrkmxzirWmuUT_xA9U=ZWsh3nMQ@mail.gmail.com>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2a00:1450:4010:c07::22b
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14323

Show key headers only | View raw


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.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web