summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog5
-rwxr-xr-xlib/rake.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2803321594..327dcb1064 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 19 04:54:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake.rb (FileUtils#ruby): takes care of space containing path.
+ [ ruby-Bugs-21591 ]
+
Tue Aug 19 01:32:37 2008 Tanaka Akira <akr@fsij.org>
* io.c (rb_open_file): encoding in mode string was ignored if perm is
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