James Edward Gray II <james / grayproductions.net> wrote:
> On Jun 20, 2005, at 1:30 PM, Chuck Brotman wrote:
>
>> When using the irb I sometimes end up in a state where hitting
>> enter only
>> gives me a new prompt. I understand that I've (somehow) gotteninto
>> the irb's
>> line continuation mode. It seems that anything I type at this point
>> gets
>> swallowed up.   Is there some way to get out of this, without
>> exiting from
>> the irb altogether?
>
> Hmm, could you show us some examples?
>
> James Edward Gray II

He means:

>> if 1 == 1
>> puts 'yes'
>>
?>
?>
?>
?>
?>

Now two things help here:

 - entering "end<cr>" until the normal prompt comes back.

 - pressing CTRL-C

Note, how "exit<cr>" does *not* help. :-)

Chuck, with your question frequency you might want to join #ruby-lang on 
freenode - a lot of Ruby folks hang out there and you usually get immediate 
feedback (plus some weired comments, if someone is in the mood... :-))

Kind regards

    robert