]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp.el (tramp-get-ls-command-with-dired): Make test for
authorMichael Albinus <albinus@detlef>
Sat, 17 Jul 2010 08:44:59 +0000 (10:44 +0200)
committerMichael Albinus <albinus@detlef>
Sat, 17 Jul 2010 08:44:59 +0000 (10:44 +0200)
"--dired" stronger.

lisp/ChangeLog
lisp/net/tramp.el

index fe0c28dfd9a2bfa3804ee20ff13638325d3cc853..70e841f6c4f60cf888bc2c04c6cbf2733bb31229 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-17  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-get-ls-command-with-dired): Make test for
+       "--dired" stronger.
+
 2010-07-17  Chong Yidong  <cyd@stupidchicken.com>
 
        * term/x-win.el (x-select-enable-primary): Change default to nil.
index a231ef29880eb06540de059636d0cfd6ed71bdbe..4bda4bc0cd3ddadeb052e43f463b2525cf9c405c 100644 (file)
@@ -1037,6 +1037,7 @@ The default value is to use the same value as `tramp-rsh-end-of-line'."
 ;; Solaris: /usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin
 ;; GNU/Linux (Debian, Suse): /bin:/usr/bin
 ;; FreeBSD: /usr/bin:/bin:/usr/sbin:/sbin: - beware trailing ":"!
+;; IRIX64: /usr/bin
 (defcustom tramp-remote-path
   '(tramp-default-remote-path "/usr/sbin" "/usr/local/bin"
     "/local/bin" "/local/freeware/bin" "/local/gnu/bin"
@@ -8335,8 +8336,11 @@ necessary only.  This function will be used in file name completion."
   (save-match-data
     (with-connection-property vec "ls-dired"
       (tramp-message vec 5 "Checking, whether `ls --dired' works")
+      ;; Some "ls" versions are sensible wrt the order of arguments,
+      ;; they fail when "-al" is after the "--dired" argument (for
+      ;; example on FreeBSD).
       (zerop (tramp-send-command-and-check
-             vec (format "%s --dired /" (tramp-get-ls-command vec)))))))
+             vec (format "%s --dired -al /" (tramp-get-ls-command vec)))))))
 
 (defun tramp-get-test-command (vec)
   (with-connection-property vec "test"
@@ -8936,7 +8940,6 @@ Only works for Bourne-like shells."
 ;;   without built-in uuencode/uudecode.
 ;; * Let `shell-dynamic-complete-*' and `comint-dynamic-complete' work
 ;;   on remote hosts.
-;; * Use secrets.el for password handling.
 ;; * Load ~/.emacs_SHELLNAME on the remote host for `shell'.
 
 ;; Functions for file-name-handler-alist: