Project

General

Profile

Actions

Bug #14640

open

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

Added by nobu (Nobuyoshi Nakada) over 6 years ago. Updated 8 months ago.

Status:
Assigned
Assignee:
Target version:
-
[ruby-core:86365]
Tags:

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".

Actions #1

Updated by naruse (Yui NARUSE) almost 6 years ago

  • Target version deleted (2.6)
Actions #2

Updated by hsbt (Hiroshi SHIBATA) 8 months ago

  • Status changed from Open to Assigned
Actions

Also available in: Atom PDF

Like0
Like0Like0