Bug #3575: String#split is inconsistent with empty string and negative limit
http://redmine.ruby-lang.org/issues/show/3575

Author: Conrad Irwin
Status: Open, Priority: Low
Category: core
ruby -v: ruby 1.9.1p378 (2010-01-10 revision 26273) [i486-linux] 

I expect: "".split(",", -1) == [""]
Currently: "".split(",", -1) == []

According to the documentation, blank fields should not be stripped when a negative offset is provided.


----------------------------------------
http://redmine.ruby-lang.org