|
From: | Chet Ramey |
Subject: | Re: Changing the way bash expands associative array subscripts |
Date: | Mon, 5 Apr 2021 10:38:32 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 |
On 3/30/21 7:05 PM, konsolebox wrote:
As I've observed, in single expansion mode, unset will fail to unset a value when the key has a closing bracket in it. Perhaps unset should check the last character first when looking for the closing bracket. Tested in 5.1.4.
There is some support for this as part of assoc_expand_once, but it's incomplete in bash-5.1. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |