i assumed you wanted a b c as command line arguments in the second case,
not echoed in.
in the first case, you indexed a variable. in the second case, you indexed
nothing.

% rc -c 'echo @ $*(2-) @' a b c
@ b c @



On 27 February 2013 15:41, Steve Simon <st...@quintile.net> wrote:

> Hi,
>
> rc is not working how I expect it to.
>
> This works fine
>         echo a b c | rc -c 'a=`{read}; echo @ $a(2-) @'
>         @ b c @
>
> This i did not expect
>         echo a b c | rc -c 'echo @ $(2-) @'
>         @ @
>
> Perhaps I need some expectation managment?
>
> -Steve
>
>

Reply via email to