File.dirname normalization differs from MRI #2391
Closed
Labels
Milestone
Comments
I've reproduced this with the latest 9k and 1.7.21 FWIW |
I fixed this some time during 9.1.x and we have EOLd 1.7.x. Resolving. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From: http://jira.codehaus.org/browse/JRUBY-4863. Differs from MRI on JRuby 1.7.18 and JRuby 9000.
MRI strips additional leading slashes with File.dirname:
However, I'm not sure if this "normalization" is intentional in MRI or accidental, because it only seems to work on leading slashes in MRI:
I'd say the spec needs to be fleshed out. Either the path should be completely normalized, or not at all.
The text was updated successfully, but these errors were encountered: