while read bash array (not into)
<p>I'm trying to use an array with <code>while read</code>, but the entire array is output at once.</p>

<pre><code>#!/bin/bash

declare -a arr=('1:one' '2:two' '3:three');

while read -e it ; do
    echo $it
done &lt;&lt;&lt; ${arr[@]}
</code></pre>

<p>It should output each value separately (but doesn't), so maybe while read isn't the hot ticket here?</p>