From: Robert Feldt Date: 2001-03-07T01:40:51+09:00 Subject: [ruby-talk:12155] RCR: Block form of Dir.chdir 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