From: Robert Klemme Date: 2003-06-17T21:03:42+09:00 Subject: Re: File.expand_path with files beginnig with ~ (tilde) on Windoze "Grzegorz Chrupala" schrieb im Newsbeitrag news:8b9e2260.0306170157.6b11784d@posting.google.com... > 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. Does this work on a Unix platform? > I wonder whether this could/should be fixed. I guess, it would not be a fix but an additional feature. The "~" expansion on Unix systems is a shell feature and no Unix built in functionality. Cheers robert