ruby-changes:51171
From: kazu <ko1@a...>
Date: Wed, 9 May 2018 21:51:20 +0900 (JST)
Subject: [ruby-changes:51171] kazu:r63378 (trunk): Use `&.` instead of modifier if
kazu 2018-05-09 21:51:14 +0900 (Wed, 09 May 2018) New Revision: 63378 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63378 Log: Use `&.` instead of modifier if Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 63377) +++ test/ruby/test_rubyoptions.rb (revision 63378) @@ -579,7 +579,7 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L579 if /linux|freebsd|netbsd|openbsd|darwin/ =~ RUBY_PLATFORM PSCMD = EnvUtil.find_executable("ps", "-o", "command", "-p", $$.to_s) {|out| /ruby/=~out} - PSCMD.pop if PSCMD + PSCMD&.pop end def test_set_program_name -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/