Mercurial > emacs
diff lisp/shell.el @ 73379:b6d2149f9903
2006-10-15 Lennart Borgman <lennart.borgman.073@student.lu.se>
(explicit-bash-args): Use shell-quote-argument.
| author | Kim F. Storm <storm@cua.dk> |
|---|---|
| date | Sun, 15 Oct 2006 20:42:10 +0000 |
| parents | 194b79b77de3 |
| children | b2e5081b9320 7eeafaaa9eab |
line wrap: on
line diff
--- a/lisp/shell.el Sun Oct 15 20:41:42 2006 +0000 +++ b/lisp/shell.el Sun Oct 15 20:42:10 2006 +0000 @@ -298,7 +298,9 @@ (equal name "bash") (file-executable-p prog) (string-match "bad option" - (shell-command-to-string (concat prog " --noediting")))) + (shell-command-to-string + (concat (shell-quote-argument prog) + " --noediting")))) '("-i") '("--noediting" "-i"))) "Args passed to inferior shell by \\[shell], if the shell is bash.
