Project

General

Profile

Actions

Bug #11906

closed

File.dirname separator stripping from the begining of path

Added by kares (Karol Bucek) over 8 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:72550]

Description

MRI strips additional leading slashes with File.dirname :

File.dirname "////foo/bar/baz"   # => /foo/bar
File.dirname "////foo//bar/baz"  # => /foo//bar

... issue arose as an incompatibility on JRuby's tracker: https://github.com/jruby/jruby/issues/2391
is the current behaviour really intended?

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0