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: 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: References: 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: 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: X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:15449 sorry for the typo in the title, it should be *lowest*. On Wed, Oct 2, 2019 at 8:35 AM hk 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? >