title: msys path conversion (or cygpath for msys?)
body: <p>I need to pass /DEF:c:\filepath\myLib.def" command line option from a bash script to MS compiler/linker. The path is generated as part of build process by a bash script. Basically, the argument that my script passes is:</p>
  
  <pre><code>-DEF:/c/filepath/myLib.def
  </code></pre>
  
  <p><a href="http://www.mingw.org/wiki/Posix_path_conversion" rel="noreferrer">MSYS path conversion</a> can't handle it properly because it doesn't understand <code>/DEF:</code> part. It works if I do </p>
  
  <pre><code>-DEF=/c/filepath/myLib.def
  </code></pre>
  
  <p>but then ms tools don't understand this parameter. In short, what's the proper way to write that parameter in MSYS bash so that it converts it to proper argument?</p>
  
  <p>On cygwin I could use cygpath, but there is no equivalent, because somebody from msys thinks that it's not needed (even if there are scripts for cygwin that uses cygpath).</p>