When I use Git Bash (on Windows), I cannot run any executable without specifying its full path, although it is located in a folder which is in my PATH variable. Looks like bash doesn’t recognize it. Why? Can I fix it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Got it. As a Windows user, I’m used to type executable names without extensions. In my case, I wanted to execute a file called
cup.bat. In a Windows shell, typingcupwould be enough. Bash doesn’t work this way, it wants the full name. Typingcup.batsolved the problem. (I wasn’t able to run the file though, since apparently bash couldn’t understand its contents)One more reason to switch to posh-git..
Thanks @Tom for pointing me to the right direction.