James Britt <james.britt / gmail.com> writes:

> When I run
>
>  $rake com This is my message
>
> it works fine, but at the very end rake complains that it doesn't know
> anything about task 'This'.

Not perfect, but you could make your 'r' shell alias a shell function
something like this (bash-wise example):

    function r() { task="$1"; shift; rake "$task" RAKEOPT="$*"; }

This will give you:

    $ set -x
    $ r com This is my message
    + r com This is my message
    + task=com
    + shift
    + rake com 'RAKEOPT=This is my message'

-Marshall