The Bash declare Statement
Apr 29, 2009, 17:47 (0 Talkback[s])
(Other stories by Mitch Frazier)
"The declare statment has other options; the -a option can be
used to declare a variable as an array, but it's not necessary. All
variables can be used as arrays without explicit definition. As a
matter of fact, it appears that in a sense, all variables are
arrays, and that assignment without a subscript is the same as
assigning to "[0]". Consider the following script:"
Complete
Story
Related Stories: