[ NOTE: last email I sent you was refused by your email server... ]

On Mon, Jan 25, 2010 at 5:24 PM, Michael Albinus <[email protected]> wrote:
> Francis Moreau <[email protected]> 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)
>

Yes.

>> $ 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

nothing changed, directories are still colored.

>
>> 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".
>

Well why not doing:

if ls --color=never >/dev/null 2>&1; then
        option="$option --color=never"
fi

?
-- 
Francis


_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to