diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-18 19:54:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-18 19:54:42 +0000 |
commit | 0e29aa4da440ac7658b731c5004fca8efcb98ab9 (patch) | |
tree | fd9e4e96dc9926e69bd7a9d821480ff4fef06f96 | |
parent | 4aa0fea5d6d76ec0e84beafd1f14717c626a8a4e (diff) | |
download | ruby-0e29aa4da440ac7658b731c5004fca8efcb98ab9.tar.gz ruby-0e29aa4da440ac7658b731c5004fca8efcb98ab9.tar.xz ruby-0e29aa4da440ac7658b731c5004fca8efcb98ab9.zip |
* lib/rake.rb (FileUtils#ruby): takes care of space containing path.
[ ruby-Bugs-21591 ]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | lib/rake.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 147d05c53..068a0ceb2 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 |