[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dired on freebsd machine does not get file permissions, lists horizo
From: |
Michael Albinus |
Subject: |
Re: dired on freebsd machine does not get file permissions, lists horizontally |
Date: |
Thu, 15 Jul 2010 16:48:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> 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.
- dired on freebsd machine does not get file permissions, lists horizontally, Terrence Brannon, 2010/07/13
- Re: dired on freebsd machine does not get file permissions, lists horizontally, Michael Albinus, 2010/07/13
- Re: dired on freebsd machine does not get file permissions, lists horizontally, Terrence Brannon, 2010/07/14
- Re: dired on freebsd machine does not get file permissions, lists horizontally, Michael Albinus, 2010/07/14
- Re: dired on freebsd machine does not get file permissions, lists horizontally, Terrence Brannon, 2010/07/14
- Re: dired on freebsd machine does not get file permissions, lists horizontally, Michael Albinus, 2010/07/15
- Re: dired on freebsd machine does not get file permissions, lists horizontally, Terrence Brannon, 2010/07/15
- Re: dired on freebsd machine does not get file permissions, lists horizontally,
Michael Albinus <=
- Re: dired on freebsd machine does not get file permissions, lists horizontally, Terrence Brannon, 2010/07/15
- Re: dired on freebsd machine does not get file permissions, lists horizontally, Michael Albinus, 2010/07/15
- Re: dired on freebsd machine does not get file permissions, lists horizontally, Terrence Brannon, 2010/07/15
- Re: dired on freebsd machine does not get file permissions, lists horizontally, Terrence Brannon, 2010/07/15
Re: dired on freebsd machine does not get file permissions, lists horizontally, Terrence Brannon, 2010/07/16