Hi,

I frequently do something like

prev_dir = Dir.pwd
Dir.chdir(new_dir)
# work in new_dir...
Dir.chdir(prev_dir)

There is probably a better way to do it somewhere in the Standard lib but
what about adding a block form to Dir.chdir so that you can do
Dir.chdir(new_dir) {
  # work in new_dir...
}

Not sure its important enough to be in BaseLib as compared to StdLib
though...

Regards,

Robert