mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
Fix quoting in tramp-find-inline-compress for w32
* lisp/net/tramp-sh.el (tramp-find-inline-compress): Improve command quoting for w32. Reported by Chris Zheng <chriszheng99@gmail.com>.
This commit is contained in:
parent
e08de2bae2
commit
ecc6257f48
1 changed files with 5 additions and 4 deletions
|
|
@ -4464,13 +4464,14 @@ Goes through the list `tramp-inline-compress-commands'."
|
|||
(zerop
|
||||
(tramp-call-local-coding-command
|
||||
(format
|
||||
"echo %s | %s | %s" magic
|
||||
;; Windows shells need the program file name after
|
||||
;; the pipe symbol be quoted if they use forward
|
||||
;; slashes as directory separators.
|
||||
(if (memq system-type '(windows-nt))
|
||||
"echo %s | \"%s\" | \"%s\""
|
||||
"echo %s | %s | %s")
|
||||
magic compress decompress)
|
||||
(mapconcat
|
||||
'shell-quote-argument (split-string compress) " ")
|
||||
(mapconcat
|
||||
'shell-quote-argument (split-string decompress) " "))
|
||||
nil nil))
|
||||
(throw 'next nil))
|
||||
(tramp-message
|
||||
|
|
|
|||
Loading…
Reference in a new issue