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

Posted by Roger Pack (Guest)
on 03.11.2009 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>'