Project

General

Profile

Actions

Bug #19986

open

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

Added by nobu (Nobuyoshi Nakada) 6 months ago.

Status:
Open
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.

No data to display

Actions

Also available in: Atom PDF

Like0