mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/fileutils.rb (FileUtils#touch): Fix corrupted output.
ref [ruby-dev:43401] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
04cdc1de04
commit
77b7f4b4c3
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Sun May 15 21:37:54 2011 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* lib/fileutils.rb (FileUtils#touch): Fix corrupted output.
|
||||
ref [ruby-dev:43401]
|
||||
|
||||
Wed Apr 20 21:40:36 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* re.h (RMATCH_REGS): parenthesize cast expression. suggested
|
||||
|
|
|
|||
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue