Project

General

Profile

Bug #14640

[win32] File.realpath treats a relative path with a drive letter as an absolute path.

Added by nobu (Nobuyoshi Nakada) 9 months ago. Updated 6 days ago.

Status:
Open
Priority:
Normal
Assignee:
cruby-windows
Target version:
-
[ruby-core:86365]

Description

When t exists in the current directory under the drive C:,

File.realpath("c:t") #=> No such file or directory @ realpath_rec - c:/t (Errno::ENOENT)

whereas File.expand_path returns Dir.pwd + "/t".

History

#1 Updated by naruse (Yui NARUSE) 6 days ago

  • Target version deleted (2.6)

Also available in: Atom PDF