From: "naruse (Yui NARUSE)" Date: 2012-07-18T04:09:56+09:00 Subject: [ruby-core:46533] [ruby-trunk - Bug #5915][Closed] Array#join with explicit nil should not use $, Issue #5915 has been updated by naruse (Yui NARUSE). Status changed from Assigned to Closed Added in r36421. ---------------------------------------- Bug #5915: Array#join with explicit nil should not use $, https://bugs.ruby-lang.org/issues/5915#change-28176 Author: john_firebaugh (John Firebaugh) Status: Closed Priority: Normal Assignee: naruse (Yui NARUSE) Category: DOC Target version: 2.0.0 ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0] =begin The documentation for Array#join says that the default argument is $,. But: $, = "," [1,2,3].join(nil) #=> "1,2,3" Based on the documentation (and the POLS), I would expect "123". =end -- http://bugs.ruby-lang.org/