tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dired on freebsd machine does not get file permissions, lists horiz


From: Terrence Brannon
Subject: Re: dired on freebsd machine does not get file permissions, lists horizontally
Date: Thu, 15 Jul 2010 11:13:29 -0400

It still lists horizontally. However, tramp.el cannot be byte-compiled after this edit.

M-x eval-current-buffer works fine on that file, but it cannot be byte-compiled

(setq stack-trace-on-error t) does not reveal why... the exact message is:

Byte-Compile tramp.el? (y or n) 
Compiling /usr/local/share/emacs/23.2/lisp/net/tramp.el...
Fontifying *Compile-Log*... (regexps.......................................................)
Compiling /usr/local/share/emacs/23.2/lisp/net/tramp.el...done
Byte compile error for /usr/local/share/emacs/23.2/lisp/net/tramp.el:
t

Byte compile error for /usr/local/share/emacs/23.2/lisp/net/tramp.el:
t



On Thu, Jul 15, 2010 at 10:48 AM, Michael Albinus <address@hidden> wrote:
> On Thu, Jul 15, 2010 at 7:38 AM, Michael Albinus <address@hidden<mailto:address@hidden>> wrote:
> Terrence Brannon <address@hidden<mailto:address@hidden>> writes:
>
>> mmm9500 # /bin/ls --color=never -al /u/autobahn/scripts/.
>> ls: -al: No such file or directory
>> /u/autobahn/scripts/.:
>> cgi             cron            diy             remote          tmp
>> cgi_login       daemon          fork            shell           transaction
>> cgi_obj         database        generic         system
>
> OK, your /bin/ls does not like the order of the arguments.

Could you, please, apply the following patch? It makes a stronger test,
whether the --color argument can be applied:

--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/tramp/lisp/tramp.el.~1~   2010-07-13 17:43:56.000000000 +0200
--- /home/albinus/src/tramp/lisp/tramp.el       2010-07-15 16:39:35.621924000 +0200
***************
*** 8319,8328 ****
            ;; Check parameters.  On busybox, "ls" output coloring is
            ;; enabled by default sometimes.  So we try to disable it
            ;; when possible.  $LS_COLORING is not supported there.
            (when (zerop (tramp-send-command-and-check
                          vec (format "%s -lnd /" result)))
              (when (zerop (tramp-send-command-and-check
!                            vec (format "%s --color=never /" result)))
                (setq result (concat result " --color=never")))
              (throw 'ls-found result))
            (setq dl (cdr dl))))))
--- 8319,8331 ----
            ;; Check parameters.  On busybox, "ls" output coloring is
            ;; enabled by default sometimes.  So we try to disable it
            ;; when possible.  $LS_COLORING is not supported there.
+            ;; Some "ls" versions are sensible wrt the order of
+            ;; arguments, they fail when "-al" is after the
+            ;; "--color=never" argument (for example on FreeBSD).
            (when (zerop (tramp-send-command-and-check
                          vec (format "%s -lnd /" result)))
              (when (zerop (tramp-send-command-and-check
!                            vec (format "%s --color=never -al /" result)))
                (setq result (concat result " --color=never")))
              (throw 'ls-found result))
            (setq dl (cdr dl))))))
--8<---------------cut here---------------end--------------->8---

Before rerunning you test, you must apply "M-x tramp-cleanup-all-connections".
This forces initial tests for a connection established afterwards.

Best regards, Michael.



--
Search! Search! [DuckDuckGo](http://duckduckgo.com/?t=terrencebrannon)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]