diff options
author | Kim F. Storm <storm@cua.dk> | 2006-10-15 20:42:10 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2006-10-15 20:42:10 +0000 |
commit | 88b7c0e4d3904a5180d367495888f84574a4758c (patch) | |
tree | 6c4db7c5094a4507b6d6c0865259ef935b24fc44 /lisp/shell.el | |
parent | 81fe5f4b2842253b5ff5d666b70024c03d78ecc4 (diff) | |
download | emacs-88b7c0e4d3904a5180d367495888f84574a4758c.tar.gz |
2006-10-15 Lennart Borgman <lennart.borgman.073@student.lu.se>
(explicit-bash-args): Use shell-quote-argument.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r-- | lisp/shell.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index 2adfc79618a..d3e23251a1f 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -298,7 +298,9 @@ Value is a list of strings, which may be nil." (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. |