what about this?
ifs='
' n=`{echo 'a b'}
or
ifs='' n=`{echo 'a b'}
if you don't mind the newline character being in the string.
On 11 March 2010 11:43, hugo rivera <[email protected]> wrote:
> Hi,
>
> % n=`{echo 'a b'}
>
> sets n to a list containing two elements, 'a' and 'b'. How can I set n
> to a single string 'a b'? note that I must execute external
> commands, so the obvious solution
>
> % n='a b'
>
> doesn't work for me.
> Saludos,
>
> --
> Hugo
>
>
