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?

Thanks.