changeset 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 3eb6ddcc34d3
children a875c440fe93
files lisp/shell.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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.