[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master e4adb6c 1/2: Wrap around error in coreutil's ls
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master e4adb6c 1/2: Wrap around error in coreutil's ls |
Date: |
Sat, 9 Jul 2016 12:20:22 +0000 (UTC) |
branch: master
commit e4adb6cdf30706f28dada8aafd347549c84105ac
Author: Jürgen Hötzel <address@hidden>
Commit: Michael Albinus <address@hidden>
Wrap around error in coreutil's ls
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Add switch
"--quoting-style=literal" if remote host supports quoting style.
Recent versions of coreutils changed default quoting style to
"--quoting=shell-escape".
---
lisp/net/tramp-sh.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 430c1c1..abfd56e 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2655,6 +2655,8 @@ The method used must be an out-of-band method."
filename switches wildcard full-directory-p)
(when (stringp switches)
(setq switches (split-string switches)))
+ (when (tramp-get-ls-command-with-quoting-style v)
+ (setq switches (append switches '("--quoting-style=literal"))))
(when (and (member "--dired" switches)
(not (tramp-get-ls-command-with-dired v)))
(setq switches (delete "--dired" switches)))