西山和広です。

At Thu, 12 Jun 2008 17:14:00 +0900,
Kazuhiro NISHIYAMA wrote:
> 
> fgに引数を指定しなかったりjobsにない数値を指定すると
> 「Maybe IRB bug!!」になります。

1.8, 1.8.7, 1.8.6, 1.8.5でも同様です。

% irb18 -r irb/completion --simple-prompt
>> RUBY_DESCRIPTION
=> "ruby 1.8.7 (2008-06-12 patchlevel 5000) [i686-linux]"
>> fg
ArgumentError: wrong number of arguments (0 for 1)
        from /home/kazu/opt/ruby18/lib/ruby/1.8/irb/cmd/nop.rb:20:in `execute'
        from /home/kazu/opt/ruby18/lib/ruby/1.8/irb/cmd/nop.rb:20:in `execute'
        from (eval):3:in `irb_fg'
        from (eval):9:in `send'
        from (eval):9:in `fg'
        from (irb):2:in `irb_binding'
        from /home/kazu/opt/ruby18/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
        from /home/kazu/opt/ruby18/lib/ruby/1.8/irb/workspace.rb:52
Maybe IRB bug!!
>> jobs
=> #0->irb on main (#<Thread:0xb7c841ac>: running)
>> fg 1
NoMethodError: undefined method `alive?' for nil:NilClass
        from /home/kazu/opt/ruby18/lib/ruby/1.8/irb/ext/multi-irb.rb:56:in `switch'
        from /home/kazu/opt/ruby18/lib/ruby/1.8/irb/cmd/subirb.rb:33:in `execute'
        from /home/kazu/opt/ruby18/lib/ruby/1.8/irb/cmd/nop.rb:20:in `execute'
        from (eval):3:in `irb_fg'
        from (eval):9:in `send'
        from (eval):9:in `fg'
        from (irb):4:in `irb_binding'
        from /home/kazu/opt/ruby18/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
        from /home/kazu/opt/ruby18/lib/ruby/1.8/irb/workspace.rb:52
Maybe IRB bug!!
>>



-- 
|ZnZ(ゼット エヌ ゼット)
|西山和広(Kazuhiro NISHIYAMA)