From 88b7c0e4d3904a5180d367495888f84574a4758c Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Sun, 15 Oct 2006 20:42:10 +0000 Subject: [PATCH] 2006-10-15 Lennart Borgman (explicit-bash-args): Use shell-quote-argument. --- lisp/shell.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.39.5