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".
This commit is contained in:
Jürgen Hötzel 2016-07-09 14:19:12 +02:00 committed by Michael Albinus
parent 0a2aedfe6d
commit e4adb6cdf3

View file

@ -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)))