Re: UUID as Array Keys strangely not possible

2019-01-29 Thread Ángel
On 2019-01-26 at 07:55 +, Robert White wrote: > I've already gone through and replaced or refactored all the > double-square-bracket evaluations with single-square-bracket > expressions, and otherwise looked for any explicit arithmatic contexts > that might be confusing the issue. > > The c

Re: UUID as Array Keys strangely not possible

2019-01-25 Thread Robert White
On 1/26/19 4:37 AM, Dennis Williamson wrote: On Fri, Jan 25, 2019, 9:51 PM Robert White On 1/22/19 10:23 PM, Chet Ramey wrote: On 1/22/19 3:32 PM, Robert White wrote: Howdy, The following cannot work because, for some reason, the array subscript parser insists on doing math on array indices e

Re: UUID as Array Keys strangely not possible

2019-01-25 Thread Dennis Williamson
On Fri, Jan 25, 2019, 9:51 PM Robert White On 1/22/19 10:23 PM, Chet Ramey wrote: > > On 1/22/19 3:32 PM, Robert White wrote: > >> Howdy, > >> > >> The following cannot work because, for some reason, the array subscript > >> parser insists on doing math on array indices even when the array is > >>

Re: UUID as Array Keys strangely not possible

2019-01-25 Thread Robert White
On 1/22/19 10:23 PM, Chet Ramey wrote: On 1/22/19 3:32 PM, Robert White wrote: Howdy, The following cannot work because, for some reason, the array subscript parser insists on doing math on array indices even when the array is associative instead of numeric typeset -A UUID_TABLE ... UUID_TABLE

Re: UUID as Array Keys strangely not possible

2019-01-23 Thread Chet Ramey
On 1/22/19 3:32 PM, Robert White wrote: > Howdy, > > The following cannot work because, for some reason, the array subscript > parser insists on doing math on array indices even when the array is > associative instead of numeric > > typeset -A UUID_TABLE > ... > UUID_TABLE+=( [${SOME_UUID}]=${SOM

Re: UUID as Array Keys strangely not possible

2019-01-22 Thread Chet Ramey
On 1/22/19 3:32 PM, Robert White wrote: > Howdy, > > The following cannot work because, for some reason, the array subscript > parser insists on doing math on array indices even when the array is > associative instead of numeric > > typeset -A UUID_TABLE > ... > UUID_TABLE+=( [${SOME_UUID}]=${SOM