Daniel Berger
5/28/2009 4:07:00 PM
> -----Original Message-----
> From: rogerpack2005@gmail.com [mailto:rogerpack2005@gmail.com]
> Sent: Thursday, May 28, 2009 8:14 AM
> To: ruby-talk ML
> Subject: Re: expand_path on windows for home dir
>
>
> > C:\>ruby -ve 'p File.expand_path("~")'
> > ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
> > "C:/Documents and Settings/phasis"
>
> Odd:
>
> D:\dev>c:ruby -ve 'p File.expand_path("~")'
> ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32]
> "/Documents and Settings/Melissa.BLACKY"
>
> maybe I should try p0 again :)
> My guess is it's some compiler define not set right.
What's your ENV['HOME'], ENV['HOMEDRIVE'] and ENV['USERPROFILE'] set to?
Does it work if you try it from C:\ on the command line instead of D:\ ?
Regards,
Dan