Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
feb5d8a4
Commit
feb5d8a4
authored
Apr 20, 2014
by
Michael Albinus
Browse files
* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if possible.
parent
0c483238
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/net/tramp-sh.el
lisp/net/tramp-sh.el
+6
-0
No files found.
lisp/ChangeLog
View file @
feb5d8a4
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
...
...
lisp/net/tramp-sh.el
View file @
feb5d8a4
...
...
@@ -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"))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment