From: Jon Distad Date: 2010-01-21T01:02:12+09:00 Subject: [ruby-core:27637] [Bug #2620] Pathname#+ generates unexpected path when arg has leading / Bug #2620: Pathname#+ generates unexpected path when arg has leading / http://redmine.ruby-lang.org/issues/show/2620 Author: Jon Distad Status: Open, Priority: Normal Category: DOC ruby -v: ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.2.0] Pathname.new('/Users/username') + '/Desktop' #=> # I would have expected it to return # similar to the behavior of File.join. I see that this behavior is documented in the code examples, but it is not explicitly mentioned. It is also semantically unusual to have a '+' method discard an operand. ---------------------------------------- http://redmine.ruby-lang.org