File.expand_path with tilde
---------------------------

                 Key: JRUBY-5332
                 URL: http://jira.codehaus.org/browse/JRUBY-5332
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.5.6
         Environment: WinXP 32-bit
            Reporter: Pinny Markowitz
            Assignee: Thomas E Enebo


Running this command in JRuby:
{{File.expand_path(File.join('~', 'some_file'))}}
{{=> "//some_file"}}
yields a return value that is not recognized by Windows.  The same command in 
MRI:
{{=> "/some_file"}}
works fine.

I have noticed that using:
{{File.expand_path('some_file', '~')}}
{{=> "C:/some_file"}}
yields an acceptable result, although still different than the MRI result:
{{=> "/some_file"}}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to