ruby-changes:19248
From: knu <ko1@a...>
Date: Fri, 15 Apr 2011 17:04:25 +0900 (JST)
Subject: [ruby-changes:19248] Ruby:r31287 (trunk): * lib/fileutils.rb (FileUtils#touch): Fix corrupted output when
knu 2011-04-15 15:05:25 +0900 (Fri, 15 Apr 2011) New Revision: 31287 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31287 Log: * lib/fileutils.rb (FileUtils#touch): Fix corrupted output when :mtime is specified in addition to :nocreate (and :verbose). ref [ruby-dev:43401] Modified files: trunk/ChangeLog trunk/lib/fileutils.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 31286) +++ ChangeLog (revision 31287) @@ -1,3 +1,9 @@ +Fri Apr 15 14:58:06 2011 Akinori MUSHA <knu@i...> + + * lib/fileutils.rb (FileUtils#touch): Fix corrupted output when + mtime is specified in addition to nocreate (and verbose). + ref [ruby-dev:43401] + Thu Apr 14 23:43:43 2011 NAKAMURA Usaku <usa@r...> * numeric.c (ruby_float_step): wrong loop condition. Index: lib/fileutils.rb =================================================================== --- lib/fileutils.rb (revision 31286) +++ lib/fileutils.rb (revision 31287) @@ -1036,7 +1036,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/