Reputation: 29
Im running VSCode on Mac and I'm trying to write a Ruby script, however everytime I try to run the file I get this error:
/Ruby/test.rb: line 1: puts: command not found
I notice that the terminal is set up to use bash. I suspect that I need to somehow configure the terminal to recognize the script as Ruby, but I'm not sure how.
Upvotes: 0
Views: 115
Reputation: 440
just add . to the start of the file but make sure you do the following before executing it
Upvotes: 1