From: "Marshall T. Vandegrift" Date: 2007-01-17T07:44:28+09:00 Subject: Re: Q: How can a Rake task know the caller's directory? James Britt 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