From: Joel VanderWerf Date: 2008-09-10T04:46:14+09:00 Subject: Re: FileUtils.chdir thread safety Charles Oliver Nutter wrote: > There's no reason threads couldn't inherit a reference to their parent > thread's cwd, only using a specific one if provided (reverting back to > the parent's cwd afterward). > > It could even be made explicit: > > Thread.chdir('foo') {} So in the case of Thread.chdir('foo') {puts `ls`} the subprocess would be executed in foo ? This would be very nice, but it seems like a major modification to ruby... potentially every system call would need to be aware of the thread cwd state. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407