]> code.delx.au - gnu-emacs/commitdiff
Wrap around error in coreutil's ls
authorJürgen Hötzel <juergen@archlinux.org>
Sat, 9 Jul 2016 12:19:12 +0000 (14:19 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 9 Jul 2016 12:19:12 +0000 (14:19 +0200)
* 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

index 430c1c1d877800fbaf9969b784232d904d246aee..abfd56eb926b29752b6d82405f0e9938ff8169c1 100644 (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)))