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

When I try to do the block argument in workspaces, I get a -bash error??

Hi - When I try to do the block argument in workspaces (not the challenge after video 1 but in the video itself), I get a -bash error. I am typing it exactly how the video and the notes are telling me to 5.downto(3) { |number| print number } and I get a bash error with expected argument error having to do with the '3'. Anyone else getting this error in workspaces?? any suggestions on how to fix it? and i am in IRB

William Li
William Li
Courses Plus Student 26,868 Points

Hi, Julia, can you provide the link to that particular course video?

2 Answers

Seth Kroger
Seth Kroger
56,413 Points

bash is the name of the console's main command interpreter/runner. If you're getting a bash error you're not in irb anymore when you typed that in. Enter the irb command again to get back into it.

Thank you Seth Kroger and William Li ! I got it working