Project

General

Profile

This project is closed and read-only.

Actions

Bug #677

closed

LoadError bug in irb/init.rb

Bug #677: LoadError bug in irb/init.rb

Added by djberg96 (Daniel Berger) almost 18 years ago. Updated over 15 years ago.

Status:
Closed
Target version:
-
ruby -v:
1.9
[ruby-core:19450]

Description

=begin
There's a plain rescue that should explicitly check for LoadError in irb/init.rb, since LoadError is not a subclass of StandardError:

--- init.orig Mon Feb 12 16:01:20 2007
+++ init.rb Wed Oct 22 09:40:25 2008
@@ -250,7 +250,7 @@
for m in @CONF[:LOAD_MODULES]
begin
require m

  •  rescue
    
  •  rescue LoadError
      print $@[0], ":", $!.class, ": ", $!, "\n"
     end
    
    end

This solved a problem I had on a Windows box where I didn't have readline installed but was trying to use irb.

Regards,

Dan
=end

Updated by shyouhei (Shyouhei Urabe) over 17 years ago Actions #1

  • Assignee set to keiju (Keiju Ishitsuka)

=begin

=end

Updated by keiju (Keiju Ishitsuka) about 17 years ago Actions #2

  • Status changed from Open to Closed
  • ruby -v set to 1.9

=begin
すでにだれかが直していました。
=end

Actions

Also available in: PDF Atom