From: han.holl@... (Han Holl) Date: 2003-04-14T19:57:50+09:00 Subject: Re: File::expand_path amok "Ariff Abdullah" wrote in message news:<23a4e28989.2898923a4e@time.net.my>... > $ pwd > / > > $ ruby -e 'p File.expand_path(*ARGV)' a/.. b > \000\000 .... > ... > .. so on so on.. \000 > .. > \000\000 > > $ ruby -e 'p File.expand_path(*ARGV).size' a/.. b > 3680 > > $ ruby -v > ruby 1.8.0 (2003-04-11) [i386-freebsd4] Strange. This runs fine on my system, both on 1.6.8 and 1.8.0p2. That said, I've looked at the code for File.expand_path, and wondered why it didn't make use of the C-library function 'realpath', when available. Cheers, Han Holl