From c0d2782a0eb10c64545e5595ec423d89e3ac9508 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 18 Aug 2008 19:54:42 +0000 Subject: * lib/rake.rb (FileUtils#ruby): takes care of space containing path. [ ruby-Bugs-21591 ] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rake.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rake.rb') diff --git a/lib/rake.rb b/lib/rake.rb index 147d05c531..068a0ceb21 100755 --- a/lib/rake.rb +++ b/lib/rake.rb @@ -917,7 +917,7 @@ module FileUtils if args.length > 1 then sh(*([RUBY] + args + [options]), &block) else - sh("#{RUBY} #{args.first}", options, &block) + sh("#{RUBY.sub(/.*\s.*/m, '"\&"')} #{args.first}", options, &block) end end -- cgit v1.2.3