diff --git a/ChangeLog b/ChangeLog index 2dd9687e82..9de574ee26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun May 15 21:37:54 2011 Akinori MUSHA + + * lib/fileutils.rb (FileUtils#touch): Fix corrupted output. + ref [ruby-dev:43401] + Wed Apr 20 21:40:36 2011 Yukihiro Matsumoto * re.h (RMATCH_REGS): parenthesize cast expression. suggested diff --git a/lib/fileutils.rb b/lib/fileutils.rb index e0fa868875..4cc541b94d 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -1043,7 +1043,7 @@ module FileUtils 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|