[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 18:30:30 +0100

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

On Mon, Jan 25, 2010 at 5:24 PM, Michael Albinus <address@hidden> wrote:
> 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

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"


reply via email to

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