Windows 7. Emacs 24.3.1. Git 1.8.1.msysgit. 1. In my equivalent .emacs file, I have the following:
(if (equal system-type 'windows-nt) (progn (setq explicit-shell-file-name "C:/Program Files (x86)/Git/bin/sh.exe") (setq shell-file-name "bash") (setq explicit-sh.exe-args '("--login" "-i")) (setenv "SHELL" shell-file-name) (add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)))
This works fine when I want to make an Mx shell: I can open the shell and type “ls”.
However, the Mx shell-command fails. When I try to run "ls" with a shell command (which should print its output in the * Shell command line buffer, according to the command Ch f shell-command), I get one error message:
"Search program: permission denied, bash"
There are some very old suggestions about Google about calling and many questions about StackOverflow about how to make the shell work in Emacs. Note that the Mx shell works fine, and I would like to work with shell commands.
(Reason: https://github.com/donkirkby/live-py-plugin#installing-the-emacs-mode )
source share