[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: General Associative Array problem -- Was: UUID as Array Keys strange
From: |
Eduardo A . Bustamante López |
Subject: |
Re: General Associative Array problem -- Was: UUID as Array Keys strangely not possible |
Date: |
Fri, 22 Feb 2019 18:04:31 -0800 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Sat, Feb 23, 2019 at 01:48:08AM +0000, 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
> just like pipelines
To be fair, I didn't say the code was wrong. I just wanted to illustrate that
the code you sent wasn't particularly easy
to work with (from my perspective). Which is fine, we found the problem
anyways. But in the future it might help you
(and us), to reduce the test case to the most minimal script that still shows
the behavior. That way we can easily run
it in our machines and see exactly what you see, and we can also focus on the
stuff that matters (i.e. the `blkid',
`sed', `eval', etc. are all distractions from the actual problem).
I usually practice the code reduction approach myself and I think it's quite
effective at helping me understand my own
mistakes :-).