Доброго дня
Проверьте, пожалуйста, у себя в командной строке:
$ A=("one" "two" "three") ; echo "${A[0]} - ${A[1]} - ${A[2]}"
one - two - three
$ echo "${A[0]} - ${A[1]} - ${A[2]}"
- two - three
UPD: Еще странность: на только что запущенном шелле:
$ [[ -v A ]] && echo Exists
Exists
$ bash --version
GNU bash, version 4.3.42(1)-release (i686-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.