aboutsummaryrefslogtreecommitdiffstats
path: root/test/irb/test_init.rb
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/irb] Restore environment variablesNobuyoshi Nakada2019-12-141-8/+10
| | | | https://github.com/ruby/irb/commit/236590882c
* Generate history file path correctly when $HOME/.irbrc doesn't existaycabta2019-11-201-0/+40
|
* Suppress read of ~/.irbrckazu2018-08-181-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* irb/test_init.rb: add test to ensure $0k0kubun2017-12-121-0/+6
| | | | | | | | | | | | is not changed. At first `ARGV.unshift('something')` was suggested for r61149, but it wasn't sufficient because it modifies $0. Not only to preserve ARGV, but also r61149 intends to preserve $0. This test prevents future breakage of the behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* irb.rb: preserve ARGV on binding.irbk0kubun2017-12-121-0/+25
This is not perfectly good solution (at least we don't want to have ARGV as default value of `argv` argument), but unfortunately IRB.setup and IRB.parse_opts are public methods and we can't make breaking change to those methods. We may deprecate using them and then make them private in the future, but the removal should not be in Ruby 2.5. So I kept their interface for now. [Bug #14162] [close GH-1770] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e