From d29f38ab65c3ab525e6ccc18f4f0c9c0662c7105 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 28 Feb 2006 00:34:05 +0000 Subject: * lib/drb/extservm.rb (invoke_service_command): cannot invoke command if command name is quoted on mswin32. [ruby-dev:28400] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/drb/extservm.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/drb/extservm.rb b/lib/drb/extservm.rb index b649c9c00..7066f84c6 100644 --- a/lib/drb/extservm.rb +++ b/lib/drb/extservm.rb @@ -86,8 +86,8 @@ module DRb @servers[name] = false end uri = @uri || DRb.uri - if RUBY_PLATFORM =~ /mswin32/ - system("cmd /c start /b #{command} #{uri} #{name}") + if RUBY_PLATFORM =~ /mswin32/ && /NT/ =~ ENV["OS"] + system(%Q'cmd /c start "ruby" /b #{command} #{uri} #{name}') else system("#{command} #{uri} #{name} &") end -- cgit