|
From: | Stefan Monnier |
Subject: | Re: master 0ad1c0d: * lisp/net/tramp.el (tramp-handle-make-process): Handle shell commands. |
Date: | Fri, 18 Dec 2020 10:15:19 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Michael, > + ;; Quote shell command. > + (when (and (= (length command) 3) > + (stringp (nth 0 command)) > + (string-match-p "sh$" (nth 0 command)) > + (stringp (nth 1 command)) > + (string-equal "-c" (nth 1 command)) > + (stringp (nth 2 command))) > + (setcar (cddr command) (tramp-shell-quote-argument (nth 2 command)))) This looks odd (what is special about the quoting needs of "sh -c" which wouldn't apply to other commands?). Do you have some bug# or test case associated to it so we can better understand why it's needed? Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |