Reputation: 17208
This is a pretty straightforward question. I want to assign a variable with an empty array. How do I do that?
Upvotes: 1
Views: 1153
Reputation: 17208
This turns out to be an easy one.
To create a global empty array:
things=()
To create a local empty array:
local -a things
Upvotes: 4