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


Groups > gnu.bash.bug > #15448

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 shouldn't it the comma operator has the lowerest precedence in the shell arithmetic expression?
Date Wed, 2 Oct 2019 08:35:30 +0800
Lines 14
Approved bug-bash@gnu.org
Message-ID <mailman.707.1569976552.2651.bug-bash@gnu.org> (permalink)
References <CAD0rTC4c80xV7VtUehFm1RYycGFFdO2Mun7C8qw_PP9QgZHVCg@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 1569976553 5621 209.51.188.17 (2 Oct 2019 00:35:53 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:from:date:message-id:subject:to; bh=bN9bAO1zdHsQce8ZZTv3u+zqH0eyCmN9+/42fuOFpv4=; b=afp9UX7Vas+V7hZunMiVhBoHwMERZxGCL4kCr9rtLIR+wPhy89Ed3aPZw6cujot1Kj VIxgWsm4Pos2OV7b1hJvcmeJf9Gsv0cjFtttVnFo5CeeGiaL3kodjmhpcQV29mmVb/VS wDDvtYeKuxOkoReZLYqFddza9NVDdIR7YSmHzPbzeSEtSaLfdS4V/TwWIbXB/j8hlZVN Rx4Xmtzsvn2J5tEt83zHOjxyNayaIXbu5uvB1ODCZFVMdQGTvz3QzB9n4r8ax7gHffY/ uhcul6zVxFJSTPYgpQzh/8S/pzdQGMCvjIqcBFnF95ZgWivQtdCUUu/yVC6dsBZx26lY F26w==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bN9bAO1zdHsQce8ZZTv3u+zqH0eyCmN9+/42fuOFpv4=; b=QR2DJSlHnq+NAAIG9uLMG0tgL29aOPeVLJKTJcfOrvklqkcuxZsbEScwtOd+qH2tN7 0rTFTiZUkBvdn9014XBgMJtwVnSIK5EjBqXvZ0vZDBaGqj8qM64WjDOtUn0dNJftcPhs neC4j1UHxuMcFY46Qjcw7go6o+bcGGKxWu+xxQuhEgfCuXWxc62ItoIR8Q4c0sXX7wKd esEkc2/ZxQ0tIhOI7rxxRZEYSanjC4KzGXYdhXwwtHsKm6E3xfk4WycTq3bMz/H56yF8 wo/5Nl6xjVpHWJ721tWnzj9v3aJFUr8FZEK1PyUV9/7V2K2sW72DH6IcV0mWfAjUe5UV Z0RQ==
X-Gm-Message-State APjAAAUpa+mrly2JOoVyJ465sGNohY4XqVfU/3Xa2sEcM95pKgSFjWS7 ECeDRdbw73HQGdPd8G/AzoKx2x4T+Yer03bMe/7aBide
X-Google-Smtp-Source APXvYqx4Ggs10dBJ0s0wClYRGC73W1k9qctcFpiP914ao3lHOjsjBiXLjDz58cODDYFQR8SNCfagE/lYE3Fan8P/Oz0=
X-Received by 2002:a37:4a50:: with SMTP id x77mr1068487qka.338.1569976543472; Tue, 01 Oct 2019 17:35:43 -0700 (PDT)
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 <CAD0rTC4c80xV7VtUehFm1RYycGFFdO2Mun7C8qw_PP9QgZHVCg@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15448

Show key headers only | View raw


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

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

csiph-web