On Mon, Jan 25, 2010 at 3:23 PM, Michael Albinus <[email protected]> wrote:
> Francis Moreau <[email protected]> writes:
>
>>> You see, that the "ls" comman adds some control characters, likely for
>>> coloring. You must suppress it on the remote side. See the Tramp manual
>>> for instructions.
>>>
>>
>> Ok but I did include this on the remote side in .profile:
>>
>>    alias ls='ls --color=never'
>>
>> And if I log to the remote host, then the alias is effective.
>>
>> Since tramp is using absolute path to call ls(1) then the alias has no
>> effect, I think.
>
> IIRC, ash does not support aliases. But I might be wrong.

Well, the version I'm using seems to support alias.

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

$ ls -l /bin/ls
ls -> busybox

So ls(1) is actually a busybox implementation, which maynot honor LS_COLORS.

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

Otherwise do you see any others alternatives to pass "--color=none" to ls ?

Thanks
-- 
Francis


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

Reply via email to