From 65a099b6797eee713cb535ff4ed9d705863f5055 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 24 Apr 2009 13:54:50 +0000 Subject: [PATCH] * net/tramp.el (tramp-handle-directory-files-and-attributes-with-stat) (tramp-handle-file-name-all-completions): Don't use "-b" as ls arg. It does not work on OpenBSD. Reported by Taylor Venable . --- lisp/ChangeLog | 7 +++++++ lisp/net/tramp.el | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 14ef37558a0..5b08f7ecd7b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2009-04-24 Michael Albinus + + * net/tramp.el (tramp-handle-directory-files-and-attributes-with-stat) + (tramp-handle-file-name-all-completions): Don't use "-b" as ls + arg. It does not work on OpenBSD. Reported by Taylor Venable + . + 2009-04-23 Chong Yidong * hi-lock.el (hi-lock--inhibit-font-lock-hook): New var. diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index bb1d1416d1a..b2d5708d748 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -2920,7 +2920,7 @@ value of `default-file-modes'." vec (format (concat - "cd %s; echo \"(\"; (%s -ab | xargs " + "cd %s; echo \"(\"; (%s -a | xargs " "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)'); " "echo \")\"") (tramp-shell-quote-argument localname) @@ -2962,7 +2962,7 @@ value of `default-file-modes'." ;; rock. --daniel@danann.net (tramp-send-command v - (format (concat "%s -ab 2>/dev/null | while read f; do " + (format (concat "%s -a 2>/dev/null | while read f; do " "if %s -d \"$f\" 2>/dev/null; " "then echo \"$f/\"; else echo \"$f\"; fi; done") (tramp-get-ls-command v) @@ -7763,6 +7763,10 @@ Only works for Bourne-like shells." ;; encoding routine. ;; * It makes me wonder if tramp couldn't fall back to ssh when scp ;; isn't on the remote host. (Mark A. Hershberger) +;; * To improve the behavior in case of things like "git status", it +;; might be worthwhile to add some way to indicate that a particular +;; use of process-file is (supposed to be) free of side-effects. +;; (Stefan Monnier) ;; Functions for file-name-handler-alist: ;; diff-latest-backup-file -- in diff.el -- 2.39.2