I want to run a ruby script, and end up in a different directory.  Possible?

All of the obvious approaches (%x, ``, system()) can change
directories, but only for their own process, once the script ends,
you're right were you started.

For those who wonder 'why?'... I have a Rake task that sets up new
projects by building a project directory tree, and a couple of stub
files.  When I run it, I want to end up inside one of the project
dirs.

--
Bill Guindon (aka aGorilla)
The best answer to most questions is "it depends".