Project

General

Profile

Actions

Misc #19691

open

File.realpath on Windows does not return actual case of the file

Added by MSP-Greg (Greg L) 12 months ago. Updated 12 months ago.

Status:
Open
Assignee:
-
[ruby-core:113632]

Description

I don't know what I think of this (expected or bug), but recently in a forum I saw an issue that I don't recall accidentally doing myself. An equivalent example:

ruby -rsingleton -rSingleton -e "puts 'case issue'"

Note the change of casing with Singleton.

On case insensitive file systems, the above will double load the file, which errors.

Obviously, on case sensitive file systems, it errors with cannot load such file -- Singleton

So, options are:

A. No change to current behavior, which I'm fine with.

B. If the OS is case insensitive, don't reload the file, and maybe a warning that Singleton and singleton are equivalent.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0