title: RubyGems + Cygwin: POSIX path not found by ruby.exe
body: <p>I am a Ruby programmer on Windows who trys to switch from Win cmd to Cygwin, but cannot achieve to execute batch files of Ruby gems.</p>
  
  <p>I already stuffed any bin directory into the Windows <code>PATH</code> env. variable, including the Ruby bin where the executables are stored. Gems, however, are invoked by ruby.exe itself, which leads to the following problem with POSIX paths:</p>
  
  <pre><code>duddle@duddledan /cygdrive/c/Ruby/ruby-186-398/bin
  $ gem -v
  C:\Ruby\ruby-186-398\bin\ruby.exe: No such file or directory -- /cygdrive/c/Ruby/ruby-186-398/bin/gem (LoadError)
  
  duddle@duddledan /cygdrive/c/Ruby/ruby-186-398/bin
  $ ./gem --version
  1.3.7
  </code></pre>
  
  <p>When calling e.g. <code>./gem</code> directly by specifying the path, it can be found and executed.</p>
  
  <p>Any ideas?</p>
  
  <p><em>Edit:</em></p>
  
  <p><em>How to tell cygwin not to process batch files?</em></p>