ruby-changes:55632
From: NAKAMURA <ko1@a...>
Date: Tue, 30 Apr 2019 22:25:36 +0900 (JST)
Subject: [ruby-changes:55632] NAKAMURA Usaku:dd942cd5b3 (trunk): Use redirect keyword arguments instead of ">"
https://git.ruby-lang.org/ruby.git/commit/?id=dd942cd5b3 From dd942cd5b31947f6a514d4a916971011fbabc089 Mon Sep 17 00:00:00 2001 From: NAKAMURA Usaku <usa@r...> Date: Tue, 30 Apr 2019 22:24:45 +0900 Subject: Use redirect keyword arguments instead of ">" diff --git a/tool/merger.rb b/tool/merger.rb index 5f48f2e..56b7b4a 100755 --- a/tool/merger.rb +++ b/tool/merger.rb @@ -222,7 +222,7 @@ class << Merger https://github.com/ruby/ruby/blob/trunk/tool/merger.rb#L222 def svn_mode? return @svn_mode if defined?(@svn_mode) - @svn_mode = system("svn info > #{IO::NULL} 2>&1") + @svn_mode = system("svn info", %i(out err) => IO::NULL) end # Prints the version of Ruby found in version.h diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 1ac001b..a7bce96 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -436,7 +436,7 @@ eom https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L436 next end - if system("svn info #{RUBY_REPO_PATH&.shellescape} > #{IO::NULL} 2>&1") # SVN + if system("svn info #{RUBY_REPO_PATH&.shellescape}", %i(out err) => IO::NULL) # SVN if log = find_svn_log("##@issue]") && /revision="(?<rev>\d+)/ =~ log rev = "r#{rev}" end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/