ruby-changes:19234
From: kosaki <ko1@a...>
Date: Fri, 15 Apr 2011 16:41:01 +0900 (JST)
Subject: [ruby-changes:19234] Ruby:r31273 (trunk): * lib/fileutils.rb (FileUtils#touch): fix corrupted output when
kosaki 2011-04-14 19:58:10 +0900 (Thu, 14 Apr 2011) New Revision: 31273 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31273 Log: * lib/fileutils.rb (FileUtils#touch): fix corrupted output when FileUtils.touch(:nocreate => true, :verbose => true) case. The patch was written by Hiroyuki Iwatsuki. [ruby-dev:43401] Modified files: trunk/ChangeLog trunk/lib/fileutils.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 31272) +++ ChangeLog (revision 31273) @@ -1,3 +1,9 @@ +Thu Apr 14 19:55:54 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * lib/fileutils.rb (FileUtils#touch): fix corrupted output when + FileUtils.touch(:nocreate => true, :verbose => true) case. + The patch was written by Hiroyuki Iwatsuki. [ruby-dev:43401] + Thu Apr 14 16:01:45 2011 Kazuhiro NISHIYAMA <zn@m...> * io.c (rb_f_syscall): reduce warning: "HAVE___SYSCALL" is not defined. Index: lib/fileutils.rb =================================================================== --- lib/fileutils.rb (revision 31272) +++ lib/fileutils.rb (revision 31273) @@ -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/