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:
parent
0a2aedfe6d
commit
e4adb6cdf3
1 changed files with 2 additions and 0 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue