HI
When i use irb, sometimes i get a strage behavour especially when i do
a error.
As you can see from the below example, where it jumped from
rb(main):034:0 to rb(main):035:1 when i did not close the block
properly. now i lost my interactivity and dont know how to get back to
the original session. I have to quit my window and restart irb again.
is ther a better way of handling such situations
ttp://stockcharts.com/images/footer_datafeed.gif
0
rb(main):033:0> a.each{|l|puts l.href if
l.src==‘http://stockcharts.com/images/
co_candle_on.gif’}
ttp://stockcharts.com/h-sc/ui?s=$COMPQ&p=D&b=5&g=0&id=p41804099534&a=74539483&l
stNum=26
ttp://stockcharts.com/h-sc/ui?s=$TSE&p=D&id=p41804099534&a=74539480&listNum=26
ttp://stockcharts.com/h-sc/ui?s=$XAX&p=D&b=5&g=0&id=p41804099534&a=74539484&lis
Num=26
ttp://stockcharts.com/h-sc/ui?s=APCC&id=p41804099534&a=81626759&listNum=26
ttp://stockcharts.com/h-sc/ui?s=MNC&id=p41804099534&a=81626766&listNum=26
ttp://stockcharts.com/h-sc/ui?s=OSI&id=p41804099534&a=81697771&listNum=26
ttp://stockcharts.com/h-sc/ui?s=YHOO&id=p41804099534&a=81626768&listNum=26
0
rb(main):034:0> a.each{|l|puts l.href if(
l.src==‘http://stockcharts.com/images
ico_candle_on.gif’ &&
l.href.include?“http://stockcharts.com/h-sc/ui?s=$COMPQ”
rb(main):035:1> a.each{|l|puts l.href if(
l.src==‘http://stockcharts.com/images
ico_candle_on.gif’ &&
l.href.include?“http://stockcharts.com/h-sc/ui?s=$COMPQ”)
}
rb(main):036:1> a.each{|l|puts l.href if(
l.src==‘http://stockcharts.com/images
ico_candle_on.gif’ && l.href.include?"=$COMPQ") }
rb(main):037:1>
rb(main):038:1* /
rb(main):039:1/ }
rb(main):040:1/
rb(main):041:1/ break