KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have problems to check syntax of ruby scripts that has rails script/runner on its shebang. Here are two example scripts and how they responses to ruby syntax checking: Script hello_world_runner.rb : #!/usr/bin/env script/runner p "Hello world!" Script hello_world.rb #!/usr/bin/env ruby p "Hello world!" Here is how I try to check the syntax. First line is a command and a second line is an output. $ ruby -c hello_world_runner.rb "Hello world!" $ ruby -c hello_world.rb SYNTAX OK
Tags (comma-separated)
Save Edits
Cancel