Windows, Emacs, Git Bash y shell-command

Windows 7. Emacs 24.3.1. Git 1.8.1.msysgit.1. Tengo lo siguiente en mi archivo .emacs equivalente:

(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)))

Esto funciona muy bien cuando quiero hacer.Shell m-x: Puedo abrir una cáscara y escribir "ls".

Sin embargo,M-x shell-command esta cayendo. Cuando intento ejecutar "ls" mediante el comando shell (que debería imprimir su salida en el búfer * Shell Command Output *, de acuerdo conC-h f shell-command), Recibo un solo mensaje de error:

"Buscando programa: permiso denegado, bash"

Hay algunas sugerencias muy antiguas en Google sobreproceso de llamada y muchas preguntas en StackOverflow sobre cómo hacer que el shell funcione en Emacs. Tenga en cuenta queShell m-x funciona muy bien, y lo que me gustaría trabajar es shell-command.

(Razón:https://github.com/donkirkby/live-py-plugin#installing-the-emacs-mode)

Respuestas a la pregunta(3)

Su respuesta a la pregunta