On 7/15/25 3:21 AM, Robert Elz wrote:
     Date:        Mon, 14 Jul 2025 15:22:35 -0400
     From:        Chet Ramey <chet.ra...@case.edu>
     Message-ID:  <90a41c5d-c407-4a36-b7b1-21a9201b4...@case.edu>

   | Say you have something like
   |
   | if command; then
   |    declare -i X
   |    X=some-random-expression
   | fi
   |
   | How does the parser determine the assignment should be parsed as an
   | arithmetic expression?

There is a much better example of the problem:

Any compound command can exhibit the issue.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to