Re: General Associative Array problem -- Was: UUID as Array Keys strangely not possible

2019-02-22 Thread Eduardo A . Bustamante López
On Sat, Feb 23, 2019 at 01:48:08AM +, Robert White wrote: (...) > Your syntax checker is straight tripping on that SC1036 error dude. Array > assignment using ARRAYNAME=( expression ) is completely legal and correct > with or without the eval. The structure even allows for line continuation >

Re: General Associative Array problem -- Was: UUID as Array Keys strangely not possible

2019-02-22 Thread Robert White
On 2/22/19 4:17 PM, Eduardo Bustamante wrote: On Fri, Feb 22, 2019 at 3:24 AM Robert White wrote: (...) tail --lines=+3 /proc/partitions | grep -v ram | while read -a RECORD do (...) eval [${INLINE[UUID]}]=boo (...) done echo " Keys: " "${![@]}" = "${[@]}" echo "

Re: General Associative Array problem -- Was: UUID as Array Keys strangely not possible

2019-02-22 Thread Eduardo Bustamante
On Fri, Feb 22, 2019 at 3:24 AM Robert White wrote: (...) > tail --lines=+3 /proc/partitions | grep -v ram | > while read -a RECORD > do (...) > eval [${INLINE[UUID]}]=boo (...) > done > > echo " Keys: " "${![@]}" = "${[@]}" > echo " Keys: " "${![@]}" = "${[@]}" >

Re: General Associative Array problem -- Was: UUID as Array Keys strangely not possible

2019-02-22 Thread Chet Ramey
On 2/22/19 6:23 AM, Robert White wrote: > Consider the script at the end of this email. It's effectively impossible > to get or to accept the various values. What are "the various values"? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars