From: "drbrain (Eric Hodel)" Date: 2012-03-20T08:37:15+09:00 Subject: [ruby-core:43488] [ruby-trunk - Feature #3575] String#split is inconsistent with empty string and negative limit Issue #3575 has been updated by drbrain (Eric Hodel). Category changed from core to DOC Assignee set to drbrain (Eric Hodel) I will add a note to the documentation to cover the behavior of empty strings. ---------------------------------------- Feature #3575: String#split is inconsistent with empty string and negative limit https://bugs.ruby-lang.org/issues/3575#change-24958 Author: Conrad.Irwin (Conrad Irwin) Status: Open Priority: Low Assignee: drbrain (Eric Hodel) Category: DOC Target version: =begin I expect: "".split(",", -1) == [""] Currently: "".split(",", -1) == [] According to the documentation, blank fields should not be stripped when a negative offset is provided. =end -- http://bugs.ruby-lang.org/