mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/irb.rb: forget svn commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
300d60a8e4
commit
5ab016489c
2 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Jul 22 02:33:57 2009 Keiju Ishitsuka <keiju@emperor2.pendome>
|
||||
|
||||
* lib/irb.rb: forget svn commit.
|
||||
|
||||
Wed Jul 22 01:20:54 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* bootstraptest/test_io.rb: block write may block for long time.
|
||||
|
|
12
lib/irb.rb
12
lib/irb.rb
|
@ -65,12 +65,20 @@ module IRB
|
|||
irb.signal_handle
|
||||
end
|
||||
|
||||
catch(:IRB_EXIT) do
|
||||
irb.eval_input
|
||||
begin
|
||||
catch(:IRB_EXIT) do
|
||||
irb.eval_input
|
||||
end
|
||||
ensure
|
||||
irb_at_exit
|
||||
end
|
||||
# print "\n"
|
||||
end
|
||||
|
||||
def IRB.irb_at_exit
|
||||
@CONF[:AT_EXIT].each{|hook| hook.call}
|
||||
end
|
||||
|
||||
def IRB.irb_exit(irb, ret)
|
||||
throw :IRB_EXIT, ret
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue