From: gabriele renzi Date: 2003-01-16T06:40:02+09:00 Subject: Re: Dir.chdir On 14 Jan 2003 23:54:51 -0800, zhoujing@comp.nus.edu.sg (TOTO) wrote: >It seems that the class method "Dir.chdir" can't be used to implemnt >the Unix command cd, because it can only change the working directory >of the current process. Is that right? > >Can someone suggest a good way to do the same thing as the Unix cd >command? they are the same, actually. $PWD is an internal variable of the shell, the same way as in ruby. >Thanks.