Project

General

Profile

Bug #3391 ยป exclamation_mark_irb_fix.diff

diegoviola (Diego Viola), 06/05/2010 08:33 AM

View differences:

lib/irb.rb
85 85

  
86 86
  def IRB.irb_abort(irb, exception = Abort)
87 87
    if defined? Thread
88
      irb.context.thread.raise exception, "abort then interrupt!!"
88
      irb.context.thread.raise exception, "abort then interrupt!"
89 89
    else
90
      raise exception, "abort then interrupt!!"
90
      raise exception, "abort then interrupt!"
91 91
    end
92 92
  end
93 93

  
......
195 195
	      printf "... %d levels...\n", levels if levels > 0
196 196
	      print lasts.join("\n")
197 197
	    end
198
	    print "Maybe IRB bug!!\n" if irb_bug
198
	    print "Maybe IRB bug!\n" if irb_bug
199 199
	  end
200 200
          if $SAFE > 2
201 201
            abort "Error: irb does not work for $SAFE level higher than 2"
......
245 245

  
246 246
    def signal_handle
247 247
      unless @context.ignore_sigint?
248
	print "\nabort!!\n" if @context.verbose?
248
	print "\nabort!\n" if @context.verbose?
249 249
	exit
250 250
      end
251 251