ruby-changes:61155
From: Nobuyoshi <ko1@a...>
Date: Sat, 9 May 2020 01:45:02 +0900 (JST)
Subject: [ruby-changes:61155] 8830d60dae (master): rbuninstall.rb: print output record separator instead of $\
https://git.ruby-lang.org/ruby.git/commit/?id=8830d60dae From 8830d60dae428bcdc37244cc2cc6a41900d0ab78 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 9 May 2020 01:40:40 +0900 Subject: rbuninstall.rb: print output record separator instead of $\ diff --git a/tool/rbuninstall.rb b/tool/rbuninstall.rb index eb324c9..736213f 100755 --- a/tool/rbuninstall.rb +++ b/tool/rbuninstall.rb @@ -27,9 +27,10 @@ $_ = File.join($destdir, $_) if $destdir https://github.com/ruby/ruby/blob/trunk/tool/rbuninstall.rb#L27 list << $_ END { status = true - $\ = ors = (!$dryrun and $tty) ? "\e[K\r" : "\n" + $\ = nil + ors = (!$dryrun and $tty) ? "\e[K\r" : "\n" $files.each do |file| - print "rm #{file}" + print "rm #{file}#{ors}" unless $dryrun begin File.unlink(file) @@ -45,7 +46,7 @@ END { https://github.com/ruby/ruby/blob/trunk/tool/rbuninstall.rb#L46 unlink[dir] = true end while dir = $dirs.pop - print "rmdir #{dir}" + print "rmdir #{dir}#{ors}" unless $dryrun begin begin @@ -65,7 +66,6 @@ END { https://github.com/ruby/ruby/blob/trunk/tool/rbuninstall.rb#L66 end end end - $\ = nil print ors.chomp exit(status) } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/