Lea Wiemann wrote:
> Repeat-By:
>
> IFS=$'\n'
> a=(A B C D)
> b=("${a[@]}")
> echo "${#b[@]}", "${b[@]}" # 4, A B C D -- OK
> b=("${a[@]:2}")
> echo "${#b[@]}", "${b[@]}" # 1, C D -- bug, should be 2, C D
I have to correct myself, in the normal case "${a[@]:2}" will expand
indeed word-wise. So it's a bug.
Sorry,
Jan