From: Chris Morris Date: 2003-06-17T21:49:45+09:00 Subject: Re: File.expand_path with files beginnig with ~ (tilde) on Windoze Grzegorz Chrupala wrote: >Hi, >I have noticed the following Ruby-on-Windoze gotcha: > >File.expand_path("~$some_m$word_tmp_file", ".") > >returns just the filename, no expansion is done. I guess this has >something to do with Unix using names starting with "~" for home >directories. >I wonder whether this could/should be fixed. > > What version of Ruby? Here's what I got: C:\>irb irb(main):001:0> File.expand_path("~/temp") ArgumentError: couldn't find HOME environment -- expanding `~/temp' from (irb):1:in `expand_path' from (irb):1 irb(main):002:0> VERSION => "1.6.8" -- Chris http://clabs.org/blogki