Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMultidimensional associative arrays #41
Open
Labels
Comments
|
Thanks for the example: Missing an ending " on $1_sound and the key vars need ${animals[${adminal}_species|age|sound} as '$animal_xyz' is literal. Here is your example with fixes and works nice in Bash 4+
Milo is a cat, it's 8 years old and makes meow! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With bash version 4+ and associative arrays, it's possible to create multidimensional arrays. Here an example:
Would you be interested in adding this (and optionally some more helperfunctions) to the bible? I could create a PR in the next few weeks☺️