From: "U.Nakamura" Date: 2011-01-20T15:25:14+09:00 Subject: [ruby-core:34644] Re: [Ruby 1.9-Bug#4294] IO.popen ['"ping"', 'localhost -n 3'] fails Hello, In message "[ruby-core:34642] [Ruby 1.9-Bug#4294] IO.popen ['"ping"', 'localhost -n 3'] fails" on Jan.20,2011 13:49:00, wrote: > Right, the case became more obvious when we're running commands whose path contains spaces. > > In 1.8.7 IO.popen only support cmd_string, not cmd_array, anyway, the respective form IO.popen '"ping" -n 3 localhost' works, and that works in ruby 1.9.2 too. I agree that the difference between the string form and the array form certainly cofuses us. But it's the spec of IO.popen. We must quote the arguments (including command) which contain spaces at the string form, and must not quote the arguments in any cases at the array form. Regards, -- U.Nakamura