[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arithmetic expression: recursive VAR evaluation suppresses desired V
From: |
Robert Elz |
Subject: |
Re: Arithmetic expression: recursive VAR evaluation suppresses desired VAR assignment |
Date: |
Thu, 11 Aug 2022 08:43:19 +0700 |
I would agree that the values bash is producing don't make a lot
sense, but I don't think you can say that either is correct - one
may be more desirable than the other, but that's it.
Var expansion (not $I but just I) is defined for $(( )) only when
I contains a integer constant (optionally signed) - anything else
supported is an extension, and can be defined to work however the
implementor wants it to work.
kre