From: Ryan Davis Date: 2011-08-19T06:30:15+09:00 Subject: Re: change into symlink directory - how? On Aug 18, 2011, at 02:58 , Alexander Schaal wrote: > how to I change into a symlink directory? > > In the bash I wrote: > > mkdir abc > ln -s abc abclink > > Now in ruby: > > Dir.chdir("abclink") > Dir.pwd > => "...../abc" > > I want to change in "abclink", not "abc" like it's done in the bash: > > cd abclink > pwd > => "...../abclink > > How can I do that in ruby? that's just a feature of bash (which I always turn off with `set -P`). It doesn't mean you're actually in abclink, just that it looks that way. I know of no way to make chdir/pwd work that way in ruby.