Project

General

Profile

Actions

Bug #19986

closed

Win32: `HOME` is set to just `HOMEDRIVE` if `HOMEPATH` is unset

Bug #19986: Win32: `HOME` is set to just `HOMEDRIVE` if `HOMEPATH` is unset

Added by nobu (Nobuyoshi Nakada) over 2 years ago. Updated 9 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:115241]

Description

$ env -u HOME -u USERPROFILE -u HOMEPATH HOMEDRIVE=no/such/home ./miniruby.exe -e 'p ENV["HOME"], Dir.home'
"no/such/home"
"no/such/home"

HOMEDRIVE should be ignored without HOMEPATH, and HOME should fallback to CSIDL_PROFILE.

Actions

Also available in: PDF Atom