X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/8a7eddd7bf52d44f9e4e6a900fbb9ac6ecfdc402..63648a956ad27fbc0e1a33ac0164eb8a5a77f06f:/lisp/net/tramp-sh.el diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 5c49774894..428bd6422d 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -3640,11 +3640,11 @@ file exists and nonzero exit status otherwise." (when extra-args (setq shell (concat shell " " extra-args))) (tramp-send-command vec (format "exec env ENV='' PROMPT_COMMAND='' PS1=%s PS2='' PS3='' %s" - (shell-quote-argument tramp-end-of-output) shell) + (tramp-shell-quote-argument tramp-end-of-output) shell) t)) ;; Setting prompts. (tramp-send-command - vec (format "PS1=%s" (shell-quote-argument tramp-end-of-output)) t) + vec (format "PS1=%s" (tramp-shell-quote-argument tramp-end-of-output)) t) (tramp-send-command vec "PS2=''" t) (tramp-send-command vec "PS3=''" t) (tramp-send-command vec "PROMPT_COMMAND=''" t))) @@ -3736,7 +3736,7 @@ process to set up. VEC specifies the connection." (tramp-message vec 5 "Setting shell prompt") (tramp-send-command - vec (format "PS1=%s" (shell-quote-argument tramp-end-of-output)) t) + vec (format "PS1=%s" (tramp-shell-quote-argument tramp-end-of-output)) t) (tramp-send-command vec "PS2=''" t) (tramp-send-command vec "PS3=''" t) (tramp-send-command vec "PROMPT_COMMAND=''" t)