On 7/15/25 3:21 AM, Robert Elz wrote:
Date: Mon, 14 Jul 2025 15:22:35 -0400 From: Chet Ramey <[email protected]> Message-ID: <[email protected]>| 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 [email protected] http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
