From: stephen.hill@... (Steve Hill) Date: 2001-11-17T03:48:27+09:00 Subject: [ruby-talk:25586] Dir.chdir Hi, 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 old_dir=Dir.pwd Dir.chdir(new_dir) #some code Dir.chdir(old_dir) one might write Dir.chdir(new_dir){ #some code } with the working directory changed only within the block. a small point, but maybe one which might lead to more readable code. regards Steve