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


Groups > gnu.bash.bug > #15449

Re: shouldn't it the comma operator has the lowerest precedence in the shell arithmetic expression?

Path csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From hk <hkadeveloper@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: shouldn't it the comma operator has the lowerest precedence in the shell arithmetic expression?
Date Wed, 2 Oct 2019 08:59:41 +0800
Lines 19
Approved bug-bash@gnu.org
Message-ID <mailman.710.1569978016.2651.bug-bash@gnu.org> (permalink)
References <CAD0rTC4c80xV7VtUehFm1RYycGFFdO2Mun7C8qw_PP9QgZHVCg@mail.gmail.com> <CAD0rTC5ivYg8xH7tF=TTa=31Hj1q-CNP+0xR6VvP3BkaZTb_Eg@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 1569978016 6114 209.51.188.17 (2 Oct 2019 01:00:16 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=G+e6fGhgelmm77KYnClXeG3shT8vjk/+cRn10ODCY3s=; b=KZeP8zbIKWQvQzXqRGlWC/cIC1rL36Pv0juRlwM0TpQY3nomSyIah3dtoNvIWqLjJY k9SrOAYa8mFra6Z8aYkVXnLf9nuTpoC/794eG23m9Tl5LxmAR1Y3nC07ChgKYc9j0IDX ljz4PZULRb4z6g/2e1anyNp4TpLFUPifHZvVnrOlYG1GDnL5zPcAqYZ7Q6NCnqwc/KWY ArlRbZ8jOCxQpiyG4F2csAaXhGUpfQef/UO/A7t9kXHy+nmhJMytsLxBFaUjL3fGKXHr PaW9EhGsv326sn2j7YRZpASKLzDKCM0AAX+WY3LBoyo8ZmxuB7Z1yMQkTU2w3uLebNXK JTng==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=G+e6fGhgelmm77KYnClXeG3shT8vjk/+cRn10ODCY3s=; b=ULQBSqgbqwEqQHn0H181fcXucAHq++GiHJBJ3M6p50jp32AcOB0g+IP79TpD+G5xGH BpaDFQ2NQBFfjAgPsTw0B7047G2qy87II6pHMdRJJ/cFEbH9nnEs9Y3Sfd3BPkq6keqy F2ZV2lsuSHSznpgmIlSVaWqvxeqgmtPzL7rjxzZHc8aSbCzrNbiGgiNmXsGORTmrKN+u kMt1H/nocGUmEYrpPyidpv237XeQn9HpF6xatGRWqEa+SXQA0wqic5nNjcwJamoonZ9/ rgFj8pxqe9NlcRu8DcqYuQE6bP20IGx8PEdq/G4TnCuv7OxXjx4Dr77b3ZVWIBelpZCJ cqZw==
X-Gm-Message-State APjAAAVtnsUKSvwHuiUyaaZWb/qh7xswtm+N1/ymJIj8eGTgf9nEKYss 9BQPeS4hDEopJEK0fwSNY5EmbSjXuadxgKRwty52Mg==
X-Google-Smtp-Source APXvYqzwhqHeZXKoP8MqvIf/XcR7/2roozx1/NmJtpjadcEjQKO9crsIrIVbquUKFtgEKynqmKFijwbD3MnTHXXEqNE=
X-Received by 2002:a37:4a50:: with SMTP id x77mr1155821qka.338.1569977994571; Tue, 01 Oct 2019 17:59:54 -0700 (PDT)
In-Reply-To <CAD0rTC4c80xV7VtUehFm1RYycGFFdO2Mun7C8qw_PP9QgZHVCg@mail.gmail.com>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4864:20::72a
X-Content-Filtered-By Mailman/MimeDel 2.1.23
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
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 <https://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>
X-Mailman-Original-Message-ID <CAD0rTC5ivYg8xH7tF=TTa=31Hj1q-CNP+0xR6VvP3BkaZTb_Eg@mail.gmail.com>
X-Mailman-Original-References <CAD0rTC4c80xV7VtUehFm1RYycGFFdO2Mun7C8qw_PP9QgZHVCg@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15449

Show key headers only | View raw


sorry for the typo in the title, it should be *lowest*.

On Wed, Oct 2, 2019 at 8:35 AM hk <hkadeveloper@gmail.com> wrote:

> Configuration Information :
> Bash Version: 5.0
> Patch Level: 0
> Release Status: release
>
> Description:
> the code snippet from expr.c starting from line 141:
>
>> /* This should be the function corresponding to the operator with the
>>    highest precedence. */
>> #define EXP_HIGHEST expcomma
>
>
> Am I understanding it wrong or is it a typo?
>

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


Thread

Re: shouldn't it the comma operator has the lowerest precedence in the shell arithmetic expression? hk <hkadeveloper@gmail.com> - 2019-10-02 08:59 +0800

csiph-web