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 | |
| 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
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/drb/extservm.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Tue Feb 28 09:32:17 2006 NAKAMURA Usaku <usa@ruby-lang.org> + + * lib/drb/extservm.rb (invoke_service_command): cannot invoke command + if command name is quoted on mswin32. [ruby-dev:28400] + Fri Feb 24 20:07:23 2006 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp> * test/drb/drbtest.rb (add_service_command): quote pathnames in the 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 |
