declare -A foo=([x]="y" ) declare -- foo declare -- foo="something" bash: declare: foo: not found