Project

General

Profile

Actions

Bug #8034

closed

File.expand_path('something', '~') do not include home path

Added by rap-kasta (Pavel Manylov) about 11 years ago. Updated about 11 years ago.

Status:
Closed
Target version:
-
ruby -v:
1.9.3p362
Backport:
[ruby-core:53168]

Description

=begin
Next code works correctly only on ruby <= 1.9.3p362.
Tested on Windows XP, Windows 2008 with ruby 1.9.3p194 (works properly), ruby 1.9.3p362 (bug), ruby 2.0.0p0 (bug).

(({File.expand_path('something', '~') #=> "C:/path/to/current/dir/~/something"}))

However, next code works as it should in all tested rubies:

(({File.expand_path '~' # => "C:/Documents and Settings/Jack"
Dir.home # => "C:/Documents and Settings/Jack"}))
=end


Related issues 2 (0 open2 closed)

Related to Backport200 - Backport #8069: Backport r39697Closednagachika (Tomoyuki Chikanaga)03/10/2013Actions
Related to Backport193 - Backport #8070: Backport r39697Closedusa (Usaku NAKAMURA)03/10/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0