title: Create array in bash dynamically
body: <p>I would like to create and fill an array dynamically but it doesn't work like this:</p>
  
  <pre><code>i=0
  while true; do
      read input
      field[$i]=$input
      ((i++))
      echo {$field[$i]}  
  done
  </code></pre>