Forum: Ruby-core pathname--is this a bug?

Posted by Roger Pack (Guest)
on 2009-11-03 21:38
(Received via mailing list)
I'm thinking this is a bug...
thoughts?

>> Pathname.new('c:/').relative_path_from Pathname.new('/')
ArgumentError: different prefix: "c:/" and "/"
        from C:/installs/ruby191p243p2/lib/ruby/1.9.1/pathname.rb:742:in
`relative_path_from'
        from (irb):4
        from C:/installs/ruby191p243p2/bin/irb:12:in `<main>'
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.