Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 0.9.0, JRuby 0.9.1, JRuby 0.9.2, JRuby 0.9.8, JRuby 0.9.9, JRuby 1.0.0RC1, JRuby 1.0.0RC2
-
Fix Version/s: JRuby 1.0.0RC3
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
I opened this up as a continuation of JRUBY-31, since the core problem reported in that bug is fixed and this bug has another dimension not captured in the comments in that bug. So as a general description, Dir[] does not return the exact strings that Ruby would. On top of that between windows and linux we do not return the same string either.
Here are the known incompatibilities:
Dir['./abc'] => ['abc'] # On windows, this is correct in linux ([./abc])
Dir[.] => [/Users/mcovarru/Documents/workspace] # On windows, linux is ??? ([.] correct)
The risk of these incompatibilities is small if they are using Dir[] for file manipulation since it represents the same file logically. It is large if they expect the string for some specific string manipulation.
1. |
Dir expands symlinks | |
|
Thomas E Enebo |
This represents an incompatiblity, so we should try to fix it for 1.0...but since it involves symlinks, it may not be possible. Do what we can, or punt on it and give a good reason why we can't do it. And update the wiki to let people know