Problem using git and Emacs eshell mode on Windows
emacs, eshell, git
Solution
This seems to be a problem with the whitespace in the directory name of the program you want to execute; this whitespace seems to be not properly escaped.
For example, if what you want to execute is "C:\Program Files\git\git.exe commit ...", then that first whitespace needs to be escaped, or the whole pathname enclosed in quotes, otherwise this line will be parsed into the tokens "C:\Program", "Files\git\git.exe", "...", the first token being the command to execute.
A first workaround would be to expand the full name by hand and enclose it in quotes, e.g.:
"C:\Program Files\git\git.exe" commit ...
Problem
when i try to make a git commit in emacs eshell mode: ``` git commit -a -m "message" ``` I receive an error: ``` 'c:\Program' is not recognized as an internal or external command, operable program or batch file. ``` and at the same time this problem is absent in emacs shell mode. How to force eshell work correctly with git?