[ruby-cvs:68348] k0kubun:r61167 (trunk): irb/test_init.rb: add test to ensure $0

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Tue Dec 12 22:56:48 JST 2017


k0kubun	2017-12-12 22:56:48 +0900 (Tue, 12 Dec 2017)

  New Revision: 61167

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61167

  Log:
    irb/test_init.rb: add test to ensure $0
    
    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.

  Modified files:
    trunk/test/irb/test_init.rb


More information about the ruby-cvs mailing list