Actions
Bug #15564
closedPathname#+(pathpart) returns pathpart when pathpart is absolute
Description
abs = Pathname.new("/abs/dir")
my = Pathname.new("/my/path")
# actual
my/abs # => #<Pathname:/abs/dir>
# expected
my/abs # => #<Pathname:/my/dir/abs/dir>
While this behavior is desirable in #expand_path, here I believe it is very surprising.
I am happy to submit a patch for this should it be confirmed as a bug.
Actions
Like0
Like0Like0Like0