On 1/2/19 5:55 AM, bitbuc...@mailbox.org wrote: > Bash Version: 4.4 > Patch Level: 19 > Release Status: release
> Description: > When unsetting elements of an associative array, unset does not respect > the quoting rules, and does its own dereferencing. The behaviour > appears to be incorrect, or at least undocumented. Yes. Associative array subscript expansion is consistent whether or not the word has undergone shell expansion. This has been discussed many times in the past. There is a shell option in bash-5.0, `assoc_expand_once', that implements the behavior you want. Chet -- ``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/