title: Creating Bash Array with Multiple Elements
body: <p>Very simple bash problem. I have an array that look like:</p>
  
  <pre><code>my_array=(1 2 3)
  </code></pre>
  
  <p>However, when I print the array or loop through it, bash only refers to the first element. </p>
  
  <pre><code>echo $my_array
  1
  
  for element in my_array ; do
      echo $element
  done
  1
  </code></pre>
  
  <p>How can I access all the elements?</p>