ruby-changes:50479
From: hsbt <ko1@a...>
Date: Wed, 28 Feb 2018 20:12:47 +0900 (JST)
Subject: [ruby-changes:50479] hsbt:r62611 (trunk): Prefer to use %x instead of backtick.
hsbt 2018-02-28 20:12:36 +0900 (Wed, 28 Feb 2018) New Revision: 62611 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62611 Log: Prefer to use %x instead of backtick. Modified files: trunk/tool/make-snapshot Index: tool/make-snapshot =================================================================== --- tool/make-snapshot (revision 62610) +++ tool/make-snapshot (revision 62611) @@ -130,7 +130,7 @@ path = ENV["PATH"].split(File::PATH_SEPA https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L130 end %w[BASERUBY RUBY MINIRUBY].each do |var| - `#{ENV[var]} --disable-gem -e1 2>&1` + %x[#{ENV[var]} --disable-gem -e1 2>&1] if $?.success? ENV[var] += ' --disable-gem' end @@ -470,7 +470,7 @@ revisions.collect {|rev| package(vcs, re https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L470 end str = open(name, "rb") {|f| f.read} if $s3 - `aws s3 cp #{name} s3://ftp.r-l.o/pub/#{$s3}/#{Pathname(name).basename}` + %x[aws s3 cp #{name} s3://ftp.r-l.o/pub/#{$s3}/#{Pathname(name).basename}] FileUtils.rm_f name name = "https://s3.amazonaws.com/ftp.r-l.o/pub/#{$s3}/#{Pathname(name).basename}" end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/