I'm trying to use unset array[@] to empty an associative array, but something
goes wrong.
This behaves as expected:
$ declare -A array; array[path/directory]=value
This produces an error:
$ declare -A array; unset array[@]; array[path/directory]=value
bash: path/directory: division by 0 (error token is "directory")
After unsetting all its elements, the array is not associative anymore?
Using array=() empties the array correctly.