1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2006-02-28 00:34:05 +00:00
parent bad3f1f3a0
commit a0d7cc1b8d
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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