title: Shell Script not running properly on Git-Bash for Windows
body: <p>I have git for windows 2.5.2 (64-bit version), downloaded from: <a href="https://git-scm.com/download/win" rel="nofollow">https://git-scm.com/download/win</a></p>
  
  <p>All I wanted was to create a .sh that would commit/push my work for me. I wrote the script and when I try to run it I get an error like:</p>
  
  <p>"#!/bin/sh: No such file or directory"</p>
  
  <p>As you can see I have my PATH set for my git-bash and my git-sh (also for my sh.exe and my bash.exe)</p>
  
  <p>PATH-> "C:\Program Files\Git\bin\;C:\Program Files\Git\mingw64\;"</p>
  
  <p>I also have my ~/.bash_profile:</p>
  
  <pre><code>if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
  </code></pre>
  
  <p>My ~/.profile:</p>
  
  <pre><code>#!/bin/sh.exe
  #
  # Get the aliases and functions
  #
  
  if [ -f ${HOME}/.bashrc ]
  then
    . ${HOME}/.bashrc
  fi
  
    export CVS_RSH="ssh"
    export EDITOR="/usr/bin/vim"
    export HISTSIZE="500"
    export PATH="${HOME}/bin:${PATH}"
  </code></pre>
  
  <p>And my simple script.sh:</p>
  
  <pre><code>#!/bin/sh.exe
  
  P_J="Le/Prjt/swks/games"
  GITLAB_USER='myuser'
  GITLAB_PASSWORD='mypass'
  P_JG='G Select'
  NAME_OF_REP='g-select'
  
  cd $P_J || EXIT
  cd "$P_JG" || EXIT
  #git add -A
  #git commit -m "$(date)"
  #git push https://$GITLAB_USER:$GITLAB_PASSWORD@gitlab.com/$GITLAB_USER/$NAME_OF_REP.git
  </code></pre>
  
  <p>From my Git-Bash, here is an "echo $PATH":</p>
  
  <pre><code>$ echo $PATH /c/Users/UserP/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/ProgramData/Oracle/Java/javapath:/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files/Java/jre1.8.0_51/bin:/c/Program Files (x86)/Android/android-sdk/platform-tools:/bin:/mingw64:/usr/bin/vendor_perl:/usr/bin/core_perl
  </code></pre>
  
  <p>As I said, when opening git-bash and running my simple .sh I get this error:</p>
  
  <p>./script.sh: line 1: #!/bin/sh.exe: No such file or directory</p>
  
  <p>The problem seems to be when creating a variable on my shellscript. Does anyone have any idea of what may be causing this problem?</p>
  
  <p>Thanks in advance!</p>