Bug #1810
closedSwitching into the specified irb subsession (complains a TypeError)
Description
=begin
In irb, with the fg command, it switch the subsession correctly but it complains.
debian-roby:/home/roby# irb
irb(main):001:0> irb
irb#1(main):001:0> fg 0
TypeError: can't convert Symbol into String
from /usr/lib/ruby/1.9.0/irb.rb:317:in eval' from /usr/lib/ruby/1.9.0/irb.rb:317:in
block in inspect'
from /usr/lib/ruby/1.9.0/irb.rb:310:in each' from /usr/lib/ruby/1.9.0/irb.rb:310:in
inspect'
from /usr/lib/ruby/1.9.0/irb.rb:302:in output_value' from /usr/lib/ruby/1.9.0/irb.rb:150:in
block (2 levels) in eval_input'
from /usr/lib/ruby/1.9.0/irb.rb:263:in signal_status' from /usr/lib/ruby/1.9.0/irb.rb:146:in
block in eval_input'
from /usr/lib/ruby/1.9.0/irb/ruby-lex.rb:243:in block (2 levels) in each_top_level_statement' from /usr/lib/ruby/1.9.0/irb/ruby-lex.rb:230:in
loop'
from /usr/lib/ruby/1.9.0/irb/ruby-lex.rb:230:in block in each_top_level_statement' from /usr/lib/ruby/1.9.0/irb/ruby-lex.rb:229:in
catch'
from /usr/lib/ruby/1.9.0/irb/ruby-lex.rb:229:in each_top_level_statement' from /usr/lib/ruby/1.9.0/irb.rb:145:in
eval_input'
from /usr/lib/ruby/1.9.0/irb.rb:69:in block in start' from /usr/lib/ruby/1.9.0/irb.rb:68:in
catch'
from /usr/lib/ruby/1.9.0/irb.rb:68:in start' from /usr/bin/irb:12:in
'Maybe IRB bug!!
irb(main):002:0>
roby@debian-roby:~$ irb -v
irb 0.9.5(05/04/13)
Sorry if it wasn't relevant.
=end
Updated by naruse (Yui NARUSE) about 15 years ago
- Status changed from Open to Assigned
- Assignee set to keiju (Keiju Ishitsuka)
=begin
Currently following in my environment.
% ruby19 -v
ruby 1.9.2dev (2009-11-04 trunk 25649) [x86_64-freebsd8.0]
irb(main):011:0> fg 0
(eval):2: warning: method redefined; discarding old irb_fg
(eval):2: warning: previous definition of irb_fg was here
IRB::IrbSwitchedToCurrentThread: カレントスレッドに切り替わりました.
from (eval):3:in irb_fg' from (eval):14:in
irb_fg'
from (irb):11
from /usr/local/bin/irb19:12:in `'
=end
Updated by mame (Yusuke Endoh) over 14 years ago
- Status changed from Assigned to Closed
=begin
Hi,
I close this ticket because I guess this is already fixed, at least in trunk.
--
Yusuke Endoh mame@tsg.ne.jp
=end