Bug #2139: backquotes method modifies unexpectedly returned content
http://redmine.ruby-lang.org/issues/show/2139

Author: Vit Ondruch
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2009-09-02) [i386-mswin32_90]

irb(main):002:0> `cmd /c dir /b`
=> "folder1\nfolder2\n"
irb(main):003:0> `cmd /u /c dir /b`
=> "f\x00o\x00l\x00d\x00e\x00r\x001\x00\n\x00\n\x00f\x00o\x00l\x00d\x00e\x00r\x002\x00\n\x00\n\x00"

Notice the '\n\x00\n\x00' sequence for the second call. Expected values are '\n\x00' or '\r\x00\n\x00'.


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