bug-coreutils
[Top][All Lists]
Advanced

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

Re: dircolors generates "uknown colorls variable su"


From: Jim Meyering
Subject: Re: dircolors generates "uknown colorls variable su"
Date: Fri, 20 Jan 2006 10:38:29 +0100

Eric Blake <address@hidden> wrote:
> According to Eric Blake on 1/17/2006 11:05 AM:
>>
>> The problem is that tcsh 6.14.00 treats LS_COLORS as a magic
>> environment variable, also parsing it for its own use in the
>> tcsh builtin ls-F.  This means that coreutils dircolors, when given
>> an SUID coloration, will output data that is expected by coreutils
>> ls but unexpected by unpatched tcsh.
>
> And here's a workaround for coreutils to make tcsh be silent when it
> doesn't recognize all the categories output by dircolors.  I verified that
> tcsh goes ahead and sets LS_COLORS in spite of the warning, so silencing
> the warning is safe.
>
> 2006-01-18  Eric Blake  <address@hidden>
>
>       * src/dircolors.c (main): Silence stderr to avoid warnings from
>       tcsh.

Thanks, but won't that also silence a legitimate warning about a mistyped
value?  I'd rather avoid emitting code that discards all stderr output.
Instead, we can suggest that affected tcsh users just change the way
they invoke eval so as to divert stderr themselves, e.g., like this:

  eval `dircolors -c`' >& /dev/null'




reply via email to

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