Commit feb5d8a4 authored by Michael Albinus's avatar Michael Albinus
Browse files

* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if possible.

parent 0c483238
2014-04-20 Michael Albinus <>
* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if
2014-04-19 Stefan Monnier <>
* progmodes/sh-script.el (sh-smie--sh-keyword-p): Handle variable
......@@ -4966,6 +4966,12 @@ Return ATTR."
vec (format
"%s --color=never -al /dev/null" result))
(setq result (concat result " --color=never")))
;; This should support file names with special
;; characters. If this option is not supported, such
;; file names might fail.
(when (tramp-send-command-and-check
vec (format "%s -b /dev/null" result))
(setq result (concat result " -b")))
(throw 'ls-found result))
(setq dl (cdr dl))))))
(tramp-error vec 'file-error "Couldn't find a proper `ls' command"))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment