Re: Changing the way bash expands associative array subscripts

2021-04-15 Thread konsolebox
On Fri, Apr 16, 2021 at 12:10 AM Chet Ramey wrote: > > I actually agree with konsolebox that assoc_expand_once for unset > > shouldn't be defaulted. The option `assoc_expand_once' is incomplete > > in the sense that the behavior of `a[@]' and `a[*]' are subtle. I see > > the current default beha

Re: Changing the way bash expands associative array subscripts

2021-04-15 Thread Chet Ramey
On 4/13/21 11:11 PM, Koichi Murase wrote: 2021年4月14日(水) 0:24 Chet Ramey : On 4/13/21 5:01 AM, Koichi Murase wrote: But I expected some design consideration enabling a[$key] for an arbitrary key in the indirect expansions and namerefs. Why? Why should the shell carry around (and expect the use