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 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: References: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com gnu.bash.bug:15448 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?