Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • What I like about your answer is the [ "$1" = arr ] || local -n arr=$1 part. The rest... I don't think you put enough effort for it to be readable. Also, your examples lack quoting. And I doubt the rest of the ideas are practical.
    – x-yuri
    Commented Jan 12, 2021 at 18:54
  • Thanks for feedback. I'll consider improvements in my further answers. I put too much unnecessary effort in explaining everything I guess. Commented Jan 25, 2021 at 9:29