John Lam (IRONRUBY)
2008-Jul-01 22:31 UTC
[Ironruby-core] HOME and USERPROFILE aliasing under Windows
MRI currently expects the HOME environment variable to be set under Windows. Various operations involving ~ and Dir will fail if HOME is not defined. However, HOME is rarely defined under Windows by default. Instead USERPROFILE is what normally represents HOME. IronRuby is considering aliasing HOME to USERPROFILE if HOME isn''t already defined at startup time. Does this seem like something reasonable to do in our implementation? Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080701/39aa1fdc/attachment.html>
Jirapong
2008-Jul-03 18:58 UTC
[Ironruby-core] HOME and USERPROFILE aliasing under Windows
same problem reported at #20475. and i agree that HOME Env should handle by that class -Jirapong On Jul 2, 2008, at 5:31 AM, "John Lam (IRONRUBY)" <jflam at microsoft.com> wrote:> MRI currently expects the HOME environment variable to be set under > Windows. Various operations involving ~ and Dir will fail if HOME is > not defined. > > > > However, HOME is rarely defined under Windows by default. Instead > USERPROFILE is what normally represents HOME. IronRuby is > considering aliasing HOME to USERPROFILE if HOME isn''t already > defined at startup time. > > > > Does this seem like something reasonable to do in our implementation? > > > > Thanks, > > -John > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core