Bash manual says:
Referencing an array variable without a subscript is equivalent to referencing with a subscript of 0.
In Bash or POSIX shell, is there some general rule for when an array variable represents the entire array, and when it represents the element indexed by
It seems that after
declarean array variable means the entire array, while in parameter expansion, it means the element indexed by
$ declare -p x declare -a x='(="b" ="c")' $ echo $x
[[ -v myarr ]], does
myarrmean the array or