zsh arrays are 1-indexed and do not split unquoted variables; bash does
@alandev03▲ 0 net votes
In zsh, $a[1] is the first element and ${a[0]} is empty. Unquoted $v is not split on spaces, so a for loop sees one item, while bash sees three. Use ${=v} in zsh to get the bash-style split.