Irb bug with 'do'


(Marcin 'Qrczak' Kowalczyk) #1

irb sometimes doesn’t see that a statement is complete when 'do’
is used:

irb(main):002:0> for i in 1…5 do print i end
irb(main):003:1>

It works with ‘;’ instead of ‘do’.

···


__("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
__/
^^
QRCZAK