From: red stun Date: 2011-01-20T00:56:43+09:00 Subject: [ruby-core:34610] [Ruby 1.9-Bug#4294][Open] IO.popen ['"ping"', 'localhost -n 3'] fails --mimepart_4d3709467f13a_53fdac75ef2266f Content-Type: text/plain Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline Bug #4294: IO.popen ['"ping"', 'localhost -n 3'] fails http://redmine.ruby-lang.org/issues/show/4294 Author: red stun Status: Open, Priority: Normal Category: core, Target version: 1.9.2 ruby -v: ruby 1.9.2p136 (2010-12-25) [i386-mingw32] >> RUBY_VERSION =3D> "1.9.2" >> RUBY_PLATFORM =3D> "i386-mingw32" >> IO.popen ['"ping"', 'localhost -n 3'] Errno::EINVAL: Invalid argument - "ping" from (irb):6:in `popen' from (irb):6 from d:/sdks/ruby/ruby-1.9.2-p0-i386-mingw32/bin/irb:12:in `' tested on both ruby-1.9.2-p0 and ruby-1.9.2-p136 it works if the extra double quotes around 'ping' are removed. ---------------------------------------- http://redmine.ruby-lang.org --mimepart_4d3709467f13a_53fdac75ef2266f Content-Type: application/octet-stream; name=testproc2.rb Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename=testproc2.rb IyBlbmNvZGluZzogVVRGLTgKcHV0cyAiUlVCWV9WRVJTSU9OID0gI3tSVUJZ X1ZFUlNJT059IgpJTy5wb3BlbihbJyJwaW5nIicsICctbiAzJywgJ2xvY2Fs aG9zdCddKQoK --mimepart_4d3709467f13a_53fdac75ef2266f--