summaryrefslogtreecommitdiff
path: root/lib/rake.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-18 19:54:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-18 19:54:42 +0000
commitc0d2782a0eb10c64545e5595ec423d89e3ac9508 (patch)
treefd9e4e96dc9926e69bd7a9d821480ff4fef06f96 /lib/rake.rb
parent02f43f1bd92cd8eb016b44d98a2b86173c520211 (diff)
* 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
Diffstat (limited to 'lib/rake.rb')
-rwxr-xr-xlib/rake.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rake.rb b/lib/rake.rb
index 147d05c..068a0ce 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