[Tcsh] various color ls-F fixes

Kimmo Suominen kim at netbsd.org
Mon Apr 10 09:39:40 UTC 2023


On Thu, 23 Mar 2023 at 15:38, Luke Mewburn <luke at mewburn.net> wrote:
> Regarding the unsetenv issue below. I experimented with this,
> but decided the behaviour was a bit weird if you did something like:
>         $ setenv LSCOLORS bad
>         Unknown colorls variable '?o'.
>         $ setenv LS_COLORS ln=target
>         $ unsetenv LS_COLORS
>         Unknown colorls variable '?o'.
> This last error is from re-parsing the previously errorneous LSCOLORS.
>
> So I decided not to proceed with that (I have the diff around if
> people want it).

I think I would like this behaviour but suppress errors in the
unsetenv case. Would that be possible? Would it make sense to others?

My thinking is that the error was already issued when LSCOLORS was
set. If we are "reusing" a bad value, we don't need the error message.

Kind regards,
+ Kimmo


More information about the Tcsh mailing list