On 26 April 2018 at 17:02, Teodoro Santoni <asbras...@gmail.com> wrote:
> ; w='A
> B
> C'
> ; we=`{echo $w}
> ; for(i in $we) { echo 'arg '$i; }
> arg A
> arg B
> arg C
> ; for(i in $w) { echo 'arg'$i; }
> argA
> B
> C
> ; exit
>
> When enclosed in single quotes, the variable is, regardless of spaces
> or whatnot, a single element. For a list you have to expand it in some
> way, inside a command expansion or declaring a list.
>

Thanks, this is it.
Ruda

Reply via email to