IRB "help" command fails with an exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ruby1.8 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When trying to use the "help" command in IRB, it fails with the following exception:
NameError: undefined method `execute' for module `IRB::ExtendCom
from (eval):4:in `instance_method'
from (eval):4:in `help'
from (irb):1
from /usr/lib/
This problem also exists in the upstream [ruby-core:22310] but a fix was committed to the 1.9 branch in July 21, 2009, the following patch backports it to this version:
(Patch against "/usr/lib/
*** /usr/lib/
--- /usr/lib/
***************
*** 9,27 ****
#
#
require 'rdoc/ri/ri_driver'
module IRB
module ExtendCommand
! module Help
begin
! @ri = RiDriver.new
rescue SystemExit
else
! def self.execute(
begin
! @ri.get_
end
--- 9,28 ----
#
#
+ require "irb/cmd/nop.rb"
require 'rdoc/ri/ri_driver'
module IRB
module ExtendCommand
! class Help<Nop
begin
! Ri = RiDriver.new
rescue SystemExit
else
! def execute(*names)
begin
! Ri.get_
end
Status changed to 'Confirmed' because the bug affects multiple users.