Mike Harris wrote: > Alternatively, you could put a file in a dir on your PATH (let's say > rake2) to log the dir and then delegate to rake, and just call rake2 > instead of rake from the command line. > I've tried that out, and it works quite well. I had already aliased 'r' to 'rake' to save tying those extra three characters. I now have a real script 'r' (well, "r.rb", which is now the new r alias): #!/usr/local/bin/ruby ENV['cwd'] = Dir.pwd puts `rake #{ARGV.join( ' ')}` Tasks that need the caller's working directory now use ENV['cwd'] || Dir.pwd Thanks! -- James Britt "Take eloquence and wring its neck." - Paul Verlaine