Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


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,865 Points

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

2 Answers

Seth Kroger
Seth Kroger
56,403 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