Project

General

Profile

Actions

Bug #2336

closed

pathname compare fails in windows

Bug #2336: pathname compare fails in windows

Added by rogerdpack (Roger Pack) almost 16 years ago. Updated over 14 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-10-26 trunk 25491) [i386-mingw32]
Backport:
[ruby-core:26540]

Description

=begin

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 '

ref:
http://www.ruby-forum.com/topic/198562#new
Thanks.
-r
=end

Actions

Also available in: PDF Atom