title: Why does bash on windows say "No such file or directory"?
body: <p>I am trying to run my shell script with bash on Windows, but it says no such file. The file definitely exists (I checked it from the command line)</p>
  
  <pre><code># Tried all of these, and they all fail
  bash C:/Users/myuser/Testing/my_script.sh
  bash /c/Users/myuser/Testing/my_script.sh
  bash -c /c/Users/myuser/Testing/my_script.sh
  bash C:\Users\myuser\Testing\my_script.sh
  </code></pre>
  
  <p>I just get:</p>
  
  <blockquote>
    <p>/bin/bash: C:/Users/myuser/Testing/my_script.sh: No such file or directory</p>
  </blockquote>
  
  <p>The file <em>does</em> exist:</p>
  
  <pre><code>dir C:\myuser\Testing\my_script.sh
  </code></pre>
  
  <blockquote>
    <p>Volume in drive C is Windows
    Volume Serial Number is XXXX-XXXX</p>
    
    <p>Directory of C:\myuser\Testing\my_script.sh</p>
    
    <p>08/15/2019  10:42 AM             7,783 my_script.sh<br>
                1 File(s)          7,783 bytes<br>
                0 Dir(s)  370,855,380,416 bytes free  </p>
  </blockquote>
  
  <p>Bash version:</p>
  
  <pre><code>bash --version
  </code></pre>
  
  <blockquote>
    <p>GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)<br>
    Copyright (C) 2016 Free Software Foundation, Inc.<br>
    License GPLv3+: GNU GPL version 3 or later <a href="http://gnu.org/licenses/gpl.html" rel="nofollow noreferrer">http://gnu.org/licenses/gpl.html</a>  </p>
    
    <p>This is free software; you are free to change and redistribute it.<br>
    There is NO WARRANTY, to the extent permitted by law. </p>
  </blockquote>
  
  <pre><code>bash which bash
  </code></pre>
  
  <blockquote>
    <p>/bin/bash </p>
  </blockquote>
  
  <p><strong>Using Windows 10, running from <code>cmd</code> shell.</strong></p>