[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

strange irb behaviour

Junkone

8/8/2006 4:06:00 PM

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.c...
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....
ico_candle_on.gif' &&
l.href.include?"http://stockcharts.com/...$COMPQ"

rb(main):035:1> a.each{|l|puts l.href if(
l.src=='http://stockcharts....
ico_candle_on.gif' &&
l.href.include?"http://stockcharts.com/...$COMPQ")
}
rb(main):036:1> a.each{|l|puts l.href if(
l.src=='http://stockcharts....
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

1 Answer

Eric Hodel

8/8/2006 5:21:00 PM

0

On Aug 8, 2006, at 9:10 AM, junkone1@gmail.com wrote:

> 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

Hit ^C (or equivalent).

--
Eric Hodel - drbrain@segment7.net - http://blog.se...
This implementation is HODEL-HASH-9600 compliant

http://trackmap.rob...