From: ts Date: 2001-08-31T00:38:27+09:00 Subject: [ruby-talk:20584] Re: Relative path >>>>> "R" == Renaud HEBERT writes: R> 1) it is still very fragile: 'dir//dir2' and 'dir/./dir2' will give R> wrong results when compared to 'dir/dir2' Use File::expand_path to remove these cases pigeon% ruby -e 'p File.expand_path "dir1/./dir2"' "/tmp/dir1/dir2" pigeon% ruby -e 'p File.expand_path "dir1//dir2"' "/tmp/dir1/dir2" pigeon% Guy Decoux