Project

General

Profile

Actions

Bug #4294

closed

IO.popen ['"ping"', 'localhost -n 3'] fails

Added by redstun (red stun) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2p136 (2010-12-25) [i386-mingw32]
Backport:
[ruby-core:34610]

Description

=begin

RUBY_VERSION
=> "1.9.2"
RUBY_PLATFORM
=> "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.
=end


Files

testproc2.rb (99 Bytes) testproc2.rb redstun (red stun), 01/20/2011 12:54 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0