Why can't Git Bash run my executable?
To run a program in the current directory in bash, you put ./
in front of it. So in your case:
$ ./sqlite3.exe
When you run sqlite3
, bash will look for a program with exactly that name in all directories of the PATH
environment variable, which by default includes standard locations for executables like /usr/local/bin
but not your current directory. See here for more info on that.
Your PATH is missing ./
. Add it to your .profile
file in the home directory (/c/Users/username
):
$ cd$ pwd/c/Users/username$ echo 'PATH=$PATH:./' >> .profile
Restart bash session and voilĂ ! Now echo $PATH
should output :./
as the last item. Note that you definitely need to add it as the last item for security (e.g. against malicious ls.exe
).