From: "Jonas Pfenniger (zimbatm)" Date: 2011-01-21T01:39:45+09:00 Subject: Re: Thread#kill works as a script but not in irb 2011/1/14 Deepak Kannan : > hi, > Thread#kill works as a script but not in irb > I though that the problem is that irb evals the code. But manually > evaling the code has the same problem. > > Code: > t = Thread.new { kill } > puts t.inspect > > # irb eval's code. but then this works as a script but does not work in > irb > # eval "t = Thread.new { kill }; puts t.inspect" > > Output: > runs successfully when run as a script ie. ruby > => # > > But running it on irb gives an error >> load '/tmp/baz.rb' > => # > IRB::NoSuchJob: No such job(#). > from :0 > > PS: https://gist.github.com/779402 > > regards, > deepak Yeah it looks like a 1.8 issue. 1.9.2 works fine though.