From: Dave Thomas Date: 2001-07-09T23:59:29+09:00 Subject: [ruby-talk:17542] Re: Dir.chdir stephen.hill@motorola.com (Steve Hill) writes: > I'm just wondering if there might be any call for Dir.chdir to be able > to take a block which would then be processed with the working dir set > to the dir changed to, so that instead of writing something like That's been implemented in 1.7. However, it isn't quite as simple as it seems, as chdir is a process-wide attribute, so two threads doing a chdir with a block would clash. The interpreter currently gets around this by banning chdirs while another chdir block is running. Dave