[Top][All Lists]

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

Re: Weird behaviour when entering the filename

From: Francis Moreau
Subject: Re: Weird behaviour when entering the filename
Date: Mon, 25 Jan 2010 15:55:03 +0100

On Mon, Jan 25, 2010 at 3:23 PM, Michael Albinus <address@hidden> wrote:
> Francis Moreau <address@hidden> 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 ?


reply via email to

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