Brian Palmer wrote:

>>> Dir.chdir
>>> homewd = Dir.pwd
>> home_dir = File.expand_path("~")
> Neither work on my XP Pro machine, HOME isn't a defined environment 
> variable, though HOME_PATH is, if that means anything.

I have HOME, USERPROFILE and HOMEDRIVE + HOMEPATH. Ruby seems to be 
depending on HOME in those code samples. I propose that it should 
fallback to USERPROFILE and HOMEDRIVE + HOMEPATH (at least on Win32).

Regards,
Florian Gross