title: Get elements of an Array in bash
body: <p>I have this vars:</p>
  
  <pre><code>REPO_ZERO=('first' 'two'  'three')
  REPO_ONE=('1' '2' '3')
  
  REPOS=(
   $REPO_ZERO
   $REPO_ONE
  )
  </code></pre>
  
  <p>I have created a loop to iterate them: </p>
  
  <pre><code>for REPO in $REPOS
   do
    echo $REPO
  done
  </code></pre>
  
  <p>I just get the first element, "firts" and "1", ok, If I type this: </p>
  
  <p>for REPO in $REPOS
       do
        echo $REPO[1]
      done</p>
  
  <p>I get "first[1]" and "1[1]". </p>
  
  <p>If I type this:</p>
  
  <pre><code> for REPO in $REPOS
     do
      echo ${REPO[1]}
     done
  </code></pre>
  
  <p>I get nothing. </p>
  
  <p>What can I do to get the elements inside the loop? I was searching but I dont get nothing that works. </p>
  
  <p>Thanks. </p>