tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is quotes in tramp-find-inline-compress needed in MS-Windows?


From: Chris Zheng
Subject: Is quotes in tramp-find-inline-compress needed in MS-Windows?
Date: Fri, 02 Feb 2018 00:36:22 +0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/27.0 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO)

Hi all,

The function `tramp-find-inline-compress' in tramp-sh.el has the code:

(format
 ;; 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)

which says the commands need to be quoted in MS-Windows. But In
MS-Windows 8.1 I get

M-& echo xyzzy | gzip | gzip -d RET
⇒ Success.

M-& echo xyzzy | \"gzip\" | \"gzip -d\" RET
⇒ Error.

This makes me think is the quotes needed?

Thank you,

Chris



reply via email to

[Prev in Thread] Current Thread [Next in Thread]