diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-28 00:34:05 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-28 00:34:05 +0000 |
commit | a0d7cc1b8d2f8929dee8fc99be91063356354578 (patch) | |
tree | b38ae0b215bd26dc3a66d10680d8ca90e6d9ca16 /lib/drb | |
parent | bad3f1f3a0483057233693875659e6ccf73e3125 (diff) |
* lib/drb/extservm.rb (invoke_service_command): cannot invoke command
if command name is quoted on mswin32. [ruby-dev:28400]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/drb')
-rw-r--r-- | lib/drb/extservm.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drb/extservm.rb b/lib/drb/extservm.rb index b649c9c006..7066f84c65 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 |