From: Rick Pasotto on
What did I update recently that caused me to lose ls coloring with this
error message:

ls: unrecognized prefix: hl
ls: unparsable value for LS_COLORS environment variable

How should I fix it?

--
"I am only one. But I am one. I cannot do everything but I can do
something. And I will not let what I cannot do interfere with what
I can do." -- Edward E. Hule
Rick Pasotto rick(a)niof.net http://www.niof.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100509202636.GB26057(a)niof.net
From: Alexander Batischev on
On Sun, May 09, 2010 at 04:26:36PM -0400, Rick Pasotto wrote:
> What did I update recently that caused me to lose ls coloring with this
> error message:
>
> ls: unrecognized prefix: hl
> ls: unparsable value for LS_COLORS environment variable
>
> How should I fix it?

In academic interest you can look what LS_COLORS environment variable contain:

$ echo $LS_COLORS

After that you can look what's wrong with it.

Fix is pretty easy:

$ eval `dircolors`

Read man pages for dircolors(1) and dir_colors(5) for most complete reference.
Note that you should place command mentioned above to .bashrc (or .zshrc, or
whatever your shell' config is) so it will run every time shell starts.

--
Regards,
Alexander Batischev


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100509203911.GA24526(a)eternity.smila.com
From: d.sastre.medina on
On Sun, May 09, 2010 at 04:26:36PM -0400, Rick Pasotto wrote:
> What did I update recently that caused me to lose ls coloring with this
> error message:
>
> ls: unrecognized prefix: hl
> ls: unparsable value for LS_COLORS environment variable
>
> How should I fix it?

If you are using system-wide definitions, edit /etc/dir_colors and
comment the offending line. There should be one.
Also, check the manpage `man dircolors'. You might want to rebuild the
definitions. Backup /etc/dir_colors before. Better yet, does
`dircolors -b' contain the offending line causing the error?
I'm guessing you use bash.

--
Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
From: Rick Pasotto on
On Sun, May 09, 2010 at 10:33:23PM +0200, d.sastre.medina(a)gmail.com wrote:
> On Sun, May 09, 2010 at 04:26:36PM -0400, Rick Pasotto wrote:
> > What did I update recently that caused me to lose ls coloring with this
> > error message:
> >
> > ls: unrecognized prefix: hl
> > ls: unparsable value for LS_COLORS environment variable
> >
> > How should I fix it?
>
> If you are using system-wide definitions, edit /etc/dir_colors and
> comment the offending line. There should be one.

There is no such file /etc/dir_colors. According to the man page, debian
does not use and ignores both /etc/dir_colors and ~/.dir_colors.

> Also, check the manpage `man dircolors'. You might want to rebuild the
> definitions. Backup /etc/dir_colors before. Better yet, does
> `dircolors -b' contain the offending line causing the error?

'dircolors' uses a precompiled database. It evidently changed recently.
It's in coreutils and that did upgrade today but the changelog doesn't
say anything about it.

Why was it changed? How does one discover info like that?

> I'm guessing you use bash.

Yes.

--
The difficulties which I meet with in order to realize my existence are
precisely what awaken and mobilize my activities, my capacities.
Rick Pasotto rick(a)niof.net http://www.niof.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100509211627.GC26057(a)niof.net
From: Rick Pasotto on
On Sun, May 09, 2010 at 04:44:08PM -0500, Ron Johnson wrote:
> On 05/09/2010 03:26 PM, Rick Pasotto wrote:
> >What did I update recently that caused me to lose ls coloring with this
> >error message:
>
> What exactly (Stable, Testing, Sid) did you update, and what command
> did you use to update it?

Testing. aptitude.

> >ls: unrecognized prefix: hl
> >ls: unparsable value for LS_COLORS environment variable
> >
> >How should I fix it?

--
"I saw that the State was half-witted ... and I lost all my
remaining respect for it ..." -- Henry David Thoreau
Rick Pasotto rick(a)niof.net http://www.niof.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100509214856.GD26057(a)niof.net