title: docker build command add 'C:/Program Files/Git' to the path passed as build argument when executed in MINGW bash on Windows
body: <p>I have following Dockerfile:</p>
  
  <pre><code>FROM ubuntu:16.04
  
  ARG path1=def_path1
  RUN mkdir ${path1}
  </code></pre>
  
  <p>When I build this Dockerfile using following command:</p>
  
  <pre><code>docker build --build-arg path1=/home/dragan -t build_arg_ex .
  </code></pre>
  
  <p>I get following error when I execute it in MINGW bash on Windows 10:</p>
  
  <pre><code>$ ./build.sh --no-cache
  Sending build context to Docker daemon  6.144kB
  Step 1/3 : FROM ubuntu:16.04
   ---&gt; 2a4cca5ac898
  Step 2/3 : ARG path1=def_path1
   ---&gt; Running in a35241ebdef3
  Removing intermediate container a35241ebdef3
   ---&gt; 01475e50af4c
  Step 3/3 : RUN mkdir ${path1}
   ---&gt; Running in 2759e683cbb1
  mkdir: cannot create directory 'C:/Program': No such file or directory
  mkdir: cannot create directory 'Files/Git/home/dragan': No such file or 
  directory
  The command '/bin/sh -c mkdir ${path1}' returned a non-zero code: 1
  </code></pre>
  
  <p>Building same Dockerfile in Windows Command Prompt or on Linux or Mac is ok. The problem is only in MINGW bash terminal on Windows because it adds 'C:/Program Files/Git' before the path that is passed as argument. </p>
  
  <p>Is there a way to execute this in MINGW bash so it does not add the 'C:/Program Files/Git' prefix?</p>
  
  <p>Thanks</p>