From: Nobuyoshi Nakada Date: 2009-01-21T12:19:23+09:00 Subject: [ruby-core:21478] Re: [Feature #1027] Dir.home Hi, At Tue, 20 Jan 2009 18:00:00 +0900, Kazuhiro NISHIYAMA wrote in [ruby-core:21454]: > Portable way of getting home directory is complex see [ruby-core:12347]. > I think a simplest getting home directory is > Dir.chdir { Dir.pwd } > now. > But this is not thread-safe and changes directory needlessness. File.expand_path("~") works. -- Nobu Nakada