paulmelnikow
paulmelnikow

Reputation: 17208

How do I create an empty array in zsh?

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

Answers (1)

paulmelnikow
paulmelnikow

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

Related Questions