title: Something is wrong with `#!`(shebang)(hashbang) in ruby script
body: <p>I have a ruby script with following content:</p>
  
  <pre><code>#!/data1/thirdparty/ruby/bin/ruby -I/data1/thirdparty/ruby/lib/ruby/2.0.0 -I/data1/thirdparty/ruby/lib/ruby/gems/2.0.0/gems/ruby-net-ldap-0.0.4 -I/data1/thirdparty/ruby/lib/ruby/site_ruby/2.0.0 -I/data1/thirdparty/ruby/lib/ruby/2.0.0/i686-linux
  </code></pre>
  
  <p>When I ran the script it throws the following error:</p>
  
  <pre><code>&lt;internal:gem_prelude&gt;:1:in `require': cannot load such file -- rubygems.rb (LoadError)
          from &lt;internal:gem_prelude&gt;:1:in `&lt;compiled&gt;'
  </code></pre>
  
  <p>I took an strace of the program and found this in the strace:</p>
  
  <pre><code>open("/data1/thirdparty/ruby/lib/ruby/2.0.0 -I/data1/thirdparty/enc/encdb.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  </code></pre>
  
  <p>So it seems like ruby is not able to handle <code>-I</code> properly because it is including it in the file path itself. How can I force the script to use <code>-I</code> as an include path directive?</p>