On 2/6/22 4:23 AM, konsolebox wrote:
On Thu, Dec 30, 2021 at 4:35 PM Chet Ramey <chet.ra...@case.edu> wrote:
Let's try it. Thanks for the report.

It seems to be already fixed in 5.2-alpha (thanks), but I can't see it
mentioned in the changelog.  Can you kindly confirm if it really is?

From CHANGES:

"bb. Array references using `@' and `*' that are the value of nameref variables
    (declare -n ref='v[@]' ; echo $ref) no longer cause the shell to exit if
    set -u is enabled and the array (v) is unset."

From the bash change log:

"subst.c
        - parameter_brace_expand: when expanding an indirect variable, extend
          the special case for array[@] and array[*] (set -u/no positional
          parameters, obeying the baroque quoting rules) to the value of the
          indirection. Report and fix from konsolebox <konsole...@gmail.com>
"



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