title: reading associative arrays from file
body: <p>I have a file with content:</p>
  
  <pre><code>( [datname]=template1 [datctype]=cs_CZ.utf-8 )
  ( [datname]=template0 [datctype]=cs_CZ.utf-8 )
  ( [datname]=postgres [datctype]=cs_CZ.utf-8 )
  ( [datname]=some\ stupid\ name [datctype]=cs_CZ.utf-8 )
  ( [datname]=jqerqwer,\ werwer [datctype]=cs_CZ.utf-8 )
  </code></pre>
  
  <p>I would to read every line and push context to associative array variable. I have no success with following code:</p>
  
  <pre><code>(cat &lt;&lt;EOF
  ( [datname]=template1 [datctype]=cs_CZ.utf-8)
  ( [datname]=template0 [datctype]=cs_CZ.utf-8 )
  EOF                      
  ) |                      
  while read r             
  do                       
     declare -A row=("$r") 
     echo ${row[datname]}  
  done;
  </code></pre>
  
  <p>I got a error:</p>
  
  <pre><code>test3.sh: line 8: row: ( [datname]=template1 [datctype]=cs_CZ.utf-8 ): must use subscript when assigning associative array
  </code></pre>
  
  <p>Is possible read array from file?</p>