From: "Clinton D. Judy" Date: 2008-09-18T00:59:30+09:00 Subject: Re: irb shell exit Sometimes I open a parentheses without closing it, or a DO without an END, or a { without a }... Once you get the hang of Ruby's pretty loose syntax, you'll also realize you forgot to close something. That's not what you did in the screenshot, but I'm warning you for next time. ;-) I forget to do that all the time. If all else fails, I hit CTRL+C, but I don't know if that causes problems. Someone have a better understanding? -----Original Message----- From: Nathan Powell [mailto:nathan@nathanpowell.org] Sent: Wednesday, September 17, 2008 11:36 AM To: ruby-talk ML Subject: Re: irb shell exit On Thu, Sep 18, 2008 at 12:27:07AM +0900, Scott Harper wrote: > I am totally new to programming so this may sound stupid, but I would > appreciate help. > > I am following along in the the Simply Rails 2 book and I am entering > classes etc. into the irb shell in the ruby console window. The problem > I am having is that sometimes I enter the wrong command and I can't > figure out how to exit the irb shell. I have tried typing "exit" and > that works sometimes, but sometimes it doesn't. The issue arose once > after I hit the Tab key and the other time i don't think i pressed > anything out of the ordinary. > > Please see screenshot for clarification. It looks like you typed irb twice. Once to get into the shell, and once while in the shell. I see though that you are using windows, and I have no idea how irb works on there, but I would have thought it was similar. npowell@delilah ~ $ irb >> irb >> exit => #, @signal_status=:IN_EVAL, @scanner=#> >> exit npowell@delilah ~ $ > > Can someone please help? > > Thanks! > > Attachments: > http://www.ruby-forum.com/attachment/2706/irb_shell_exit.JPG > > -- > Posted via http://www.ruby-forum.com/. > -- nathan nathan_at_nathanpowell_dot_org Another flaw in the human character is that everybody wants to build and nobody wants to do maintenance. ~ Kurt Vonnegut ------------------------------------