On 5/20/23 8:00 PM, Emanuele Torre wrote:
This was already reported 12 and a half years ago, but there have not
been many replies:

   https://lists.gnu.org/archive/html/bug-bash/2010-12/msg00128.html

It seems more natural, especially in the presence of sparse arrays, to
allow references to unset array elements in arithmetic contexts not to
abort the shell if nounset is enabled. ksh93 and mksh behave the same
way, even as they also treat references to unset array elements as fatal
errors when nounset is set.

--
``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/


Reply via email to