rc using backquote to parse strings, e.g:

        hugo% s=`{echo a b c}
        hugo% echo $#s $s(1)
        3 a
This is fine

        hugo% s=`{echo 'a b' c}
        hugo% echo $#s $s(1)
        3 a
This is also fine, a b and c are just two fields when they 
enter echo but they leave the appear to be 3 seperate words.

        hugo% s=`{echo '''a b''' c}
        hugo% echo $#s $s(1)
        3 'a
This is disappointing, I was hoping that I would get
2 args and the first would be 'a b' (quotes here for
clarity, I was hoping there would be none in the assinged
variable $s

Is this what one would expect or is the text parsing
by `{ .. } different to rc's normal one - dare I say broken.

Is there a way round this?

Thanks,

-Steve

Reply via email to