declare -a foo='([0]="x" [1]="y")' bash: declare: foo: not found declare -- foo="something" bash: declare: foo: not found