On Tue, Jan 07, 2014 at 12:45:42AM +0200, DanielB wrote:
> declare -a array=( 'sf052' 'to060' 'pw' 'qb099' 'pw22' 'wp039' 'wx12'
> 'wx11' )for subD in "${array[@]}"; do
> echo $subDdone
>
> output:
>
> sf052
> to060
> pw
> qb099 pw22
> wp039 wx12
> wx11
I can only guess that your terminal is
Hello,
On 2014-01-07 00:45:42 +0200, DanielB wrote:
> I've a problem with bash array loop.
>
> the following code instead of printing each value separately, joins two
> values and prints them as if they are one.
>
> declare -a array=( 'sf052' 'to060' 'pw' 'qb099' 'pw22' 'wp039' 'wx12'
> 'wx11' )