* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if possible.
This commit is contained in:
parent
0c48323816
commit
feb5d8a4d3
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-04-20 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if
|
||||
possible.
|
||||
|
||||
2014-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* 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"))))
|
||||
|
|
Loading…
Add table
Reference in a new issue