diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-13 23:55:41 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-13 23:55:41 +0000 |
commit | a39ad0f0652608ec40aa27280b9400e9858b794a (patch) | |
tree | bfda0eceba2d697f129091784bdc1160f235a833 /test | |
parent | 24e4a877cea46b15e9f0b67a39ef5ff5901814bc (diff) | |
download | ruby-a39ad0f0652608ec40aa27280b9400e9858b794a.tar.gz |
Use tr! instead of gsub!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 93eecd28c4..c7d1bcdea4 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -453,7 +453,7 @@ class TestRubyOptions < Test::Unit::TestCase notexist = "./notexist.rb" dir, *rubybin = RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME', 'EXEEXT') rubybin = "#{dir}/#{rubybin.join('')}" - rubybin.gsub!(%r(/), '\\') if /mswin|mingw/ =~ RUBY_PLATFORM + rubybin.tr!('/', '\\') if /mswin|mingw/ =~ RUBY_PLATFORM rubybin = Regexp.quote(rubybin) pat = Regexp.quote(notexist) bug1573 = '[ruby-core:23717]' |