tramp-devel
[Top][All Lists]
Advanced

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

Re: Weird behaviour when entering the filename


From: Michael Albinus
Subject: Re: Weird behaviour when entering the filename
Date: Mon, 25 Jan 2010 17:24:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

Francis Moreau <address@hidden> writes:

>>> I searched in the documentation to see which var can be customized in
>>> order to append '--color=never' to the ls command but I fail to find
>>> the answer.
>>>
>>> Could you give me a pointer ?
>>
>> You can set $LS_COLORS. Try this one:
>>
>>  (add-to-list 'tramp-remote-process-environment "LS_COLORS=co")
>
> It's not working.

Still one of my stupid questions: did you try it with Tramp? How did you
try? Have you restarted the connection from scratch? (Environment
variables are only taken into account during connection initialization)

> $ ls -l /bin/ls
> ls -> busybox
>
> So ls(1) is actually a busybox implementation, which maynot honor LS_COLORS.

What happens, if you do (in this order):

$ ls -al
$ export LS_COLORS=co
$ ls -al

> But why not disabling color by default in tramp when issuing "/bin/ls
> -ildn /etc" if tramp is not able to parse escape characters ?

Compatibility. Tramp cannot expect, that the remote ls command
understands "--color=none".

> Thanks

Best regards, Michael.




reply via email to

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