From e4adb6cdf30706f28dada8aafd347549c84105ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20H=C3=B6tzel?= Date: Sat, 9 Jul 2016 14:19:12 +0200 Subject: [PATCH] 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 430c1c1d87..abfd56eb92 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))) -- 2.39.2