Project

General

Profile

Actions

Bug #2192

closed

warning in irb/context.rb

Added by sunaku (Suraj Kurapati) over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
Backport:
[ruby-core:26047]

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

Actions #1

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

Actions #2

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

Actions #3

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0