title: Copying a Bash array fails
body: <p>Assigning arrays to variables in Bash script seems rather complicated:</p>
  <pre><code>a=(&quot;a&quot; &quot;b&quot; &quot;c&quot;)
  b=$a
  
  echo ${a[0]} 
  echo ${a[1]}
  
  echo ${b[0]} 
  echo ${b[1]} 
  </code></pre>
  <p>leads to</p>
  <pre><code>a 
  b 
  a
     
  </code></pre>
  <p>instead of</p>
  <pre><code>a
  b
  a
  b
  </code></pre>
  <p>Why? How can I fix it?</p>