From: Jim Weirich Date: 2007-01-16T21:32:53+09:00 Subject: Re: Q: How can a Rake task know the caller's directory? Trans wrote: > why did you choose to use environment vars here. isn't that sort of > like using globals? also, these don't work in my case becuase i can't > differentiate the env vars set by rake from the "real" env vars. The fact they look like environment variables is delibrate. This allows you to pass information to Rake via environment variables or by command line and Rake doesn't care. You can put a default value in your environment and then easily override it on the command line. It is also the way that the original make program worked. -- Jim Weirich -- Posted via http://www.ruby-forum.com/.