From: Jürgen Hötzel Date: Sat, 9 Jul 2016 12:19:12 +0000 (+0200) Subject: Wrap around error in coreutil's ls X-Git-Tag: emacs-26.0.90~1840^2~89 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e4adb6cdf30706f28dada8aafd347549c84105ac;p=emacs.git 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". --- diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 430c1c1d877..abfd56eb926 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)))