Project

General

Profile

Bug #1810

Switching into the specified irb subsession (complains a TypeError)

Added by robyonrails (Roberto Casadei) about 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.0 (2008-06-20 revision 17482) [i486-linux]
Backport:
[ruby-core:24518]

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


Related issues

Related to Ruby master - Bug #144: irb fgClosedkeiju (Keiju Ishitsuka)Actions

Also available in: Atom PDF