Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby Foundations Strings Special Characters and Escaping

John Stoveld
John Stoveld
4,203 Points

Issues with IRB ends listening.

For some reason when I get about 16 lines into using IRB it stops listening and i have to close out Terminal.

Screen Shot below :

http://imgur.com/T92nXoA

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

If you see this in IRB prompt: "

It means the interpreter is waiting for some kind of ending of what you started. In your case, you started a string after puts and you did not close it because \" prints the " symbol but does not close the string itself.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

So you would have to have \"" or write the missing " in the next line.

John Stoveld
John Stoveld
4,203 Points

Oddly, Pressing Cntl + C (Puts up C^) kicked me back out.

The ide is definitely acting a little funny.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Ctrl+C usually closes stuff in the console.

John Stoveld
John Stoveld
4,203 Points

Makes sense.

Following me through the forums appears to be doing well for your +1's Appreciate the help.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

It's not personal, I follow Ruby forum all the time, since there aren't many people who answer questions here.