From: Charles Oliver Nutter Date: 2008-09-10T04:28:29+09:00 Subject: Re: FileUtils.chdir thread safety Robert Klemme wrote: > 2008/9/9 Mr_Tibs : >> Darn it! It would seem like a good idea. > > I am not convinced yet. Think about typical scenarios where one > thread creates tasks and hands them off to another thread. These will > break if every thread has its own idea of current dir. If you use > absolute pathnames you do not need a local current dir. This change > might even break existing code. I believe we should at least > carefully evaluate consequences. 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') {} - Charlie