[ ? Single quotes prevent variable substitution ]
[ ? Missing closing ')' ]
[ ? CODE tags around code when posting ]
[ bash 4.3 ]
Code:
$ subme=123
$ test=(
"its a test"
for
"${subme} abc ${subme}"
)
$ for i in "${test[@]}"; do echo $i; done
its a test
for
123 abc 123
$
Cheers,