Bug #2192
closedwarning in irb/context.rb
Description
=begin
I always use RUBYOPT=-w and here is one warning I see:
/usr/lib/ruby/1.9.1/irb/context.rb:166: warning: method redefined; discarding old irb_name
Thanks for your consideration.
=end
Updated by nobu (Nobuyoshi Nakada) over 14 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r25297. Suraj, thank you for your reporting of the issue. You have greatfully contributed toward Ruby. May Ruby be with you.
=end
Updated by sunaku (Suraj Kurapati) about 14 years ago
=begin
Hello,
I still find the same warning mentioned in this report (and some new ones):
ruby -w -r 'irb' -ve 'p :hello'¶
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]
/usr/lib/ruby/1.9.1/irb/context.rb:166: warning: method redefined; discarding old irb_name
/usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning: *' interpreted as argument prefix /usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning:
' interpreted as argument prefix
/usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning: *' interpreted as argument prefix /usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning:
' interpreted as argument prefix
/usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning: *' interpreted as argument prefix /usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning:
' interpreted as argument prefix
/usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning: *' interpreted as argument prefix /usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning:
' interpreted as argument prefix
/usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning: *' interpreted as argument prefix /usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning:
' interpreted as argument prefix
/usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning: *' interpreted as argument prefix /usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning:
' interpreted as argument prefix
/usr/lib/ruby/1.9.1/irb/extend-command.rb:134: warning: `*' interpreted as argument prefix
:hello
Thanks for your consideration.
=end
Updated by Eregon (Benoit Daloze) about 14 years ago
=begin
Hi,
For my part, I got a warning about "save_history=", launching irb with RUBYOPT='-w'.
It would be nice to make this warning disappear, and I would be interested how you would deal with it.
This happen with both 1.9.2 and 1.8.7 (and I suppose all versions then)
/lib/ruby/1.9.1/irb/ext/save-history.rb:29: warning: method redefined; discarding old save_history=
/lib/ruby/1.9.1/irb/extend-command.rb:211: warning: previous definition of save_history= was here
Regards,
B.D.
=end