ruby-changes:19534
From: knu <ko1@a...>
Date: Sun, 15 May 2011 21:41:12 +0900 (JST)
Subject: [ruby-changes:19534] knu:r31575 (ruby_1_8): * lib/fileutils.rb (FileUtils#touch): Fix corrupted output.
knu 2011-05-15 21:41:05 +0900 (Sun, 15 May 2011) New Revision: 31575 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31575 Log: * lib/fileutils.rb (FileUtils#touch): Fix corrupted output. ref [ruby-dev:43401] Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/lib/fileutils.rb Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 31574) +++ ruby_1_8/ChangeLog (revision 31575) @@ -1,3 +1,8 @@ +Sun May 15 21:37:54 2011 Akinori MUSHA <knu@i...> + + * lib/fileutils.rb (FileUtils#touch): Fix corrupted output. + ref [ruby-dev:43401] + Wed Apr 20 21:40:36 2011 Yukihiro Matsumoto <matz@r...> * re.h (RMATCH_REGS): parenthesize cast expression. suggested Index: ruby_1_8/lib/fileutils.rb =================================================================== --- ruby_1_8/lib/fileutils.rb (revision 31574) +++ ruby_1_8/lib/fileutils.rb (revision 31575) @@ -1043,7 +1043,7 @@ created = nocreate = options[:nocreate] t = options[:mtime] if options[:verbose] - fu_output_message "touch #{nocreate ? ' -c' : ''}#{t ? t.strftime(' -t %Y%m%d%H%M.%S') : ''}#{list.join ' '}" + fu_output_message "touch #{nocreate ? '-c ' : ''}#{t ? t.strftime('-t %Y%m%d%H%M.%S ') : ''}#{list.join ' '}" end return if options[:noop] list.each do |path| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/