title: How to modify a segment of Bash array?
body: <p>How to modifiy/manipulate a segment of Bash array as the below fails?</p>
  <pre><code>$ l=(1 2 3) ; l=([2]=5 6 7)
  $ echo ${l[0]};echo ${l[1]};echo ${l[2]};echo ${l[3]};echo ${l[4]};echo ${l[5]}
  
  
  5
  6
  7
  </code></pre>
  <p>instead of</p>
  <pre><code>1
  2
  5
  6
  7
  </code></pre>
  <p>What is the correct way?</p>