title: How to check syntax of ruby script that has script/runner as a shebang?
body: <p>I have problems to check syntax of ruby scripts that has rails script/runner on its shebang.</p>
  
  <p>Here are two example scripts and how they responses to ruby syntax checking:</p>
  
  <p>Script <code>hello_world_runner.rb</code>:</p>
  
  <pre><code>#!/usr/bin/env script/runner
  p "Hello world!"
  </code></pre>
  
  <p>Script <code>hello_world.rb</code></p>
  
  <pre><code>#!/usr/bin/env ruby
  p "Hello world!"
  </code></pre>
  
  <p>Here is how I try to check the syntax. First line is a command and a second line is an output.</p>
  
  <pre><code>$ ruby -c hello_world_runner.rb 
  "Hello world!"
  
  $ ruby -c hello_world.rb 
  SYNTAX OK
  </code></pre>