Skip to content

Commit

Permalink
Wrap around error in coreutil's ls
Browse files Browse the repository at this point in the history
* 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".
  • Loading branch information
juergenhoetzel authored and albinus committed Jul 9, 2016
1 parent 0a2aedf commit e4adb6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lisp/net/tramp-sh.el
Expand Up @@ -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)))
Expand Down

0 comments on commit e4adb6c

Please sign in to comment.