Project

General

Profile

Actions

Bug #7374

closed

File.expand_path resolving to first file/dir instead of absolute path

Added by mdube@arcane-technologies.com (Martin Dubé) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3p327 (2012-11-10) [i386-mingw32]
Backport:
[ruby-core:49451]

Description

=begin
(({File.expand_path("./", "c:)"}))
will give "c:/$recycle.bin" as result instead of "c:/
"

(({File.expand_path("./", "c:/temp)"}))
will give "c:/temp/." as result instead of "c:/temp/
"

It looks like the first directory entry is returned instead of the absolute path.

=end


Related issues 1 (0 open1 closed)

Related to Backport193 - Backport #7381: File.expand_path resolving to first file/dir instead of absolute pathClosedusa (Usaku NAKAMURA)11/18/2012Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0