Discussion:
colorized ls
(too old to reply)
Rick Pasotto
2010-05-09 20:30:01 UTC
Permalink
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 ***@niof.net http://www.niof.net
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@niof.net
Alexander Batischev
2010-05-09 20:40:01 UTC
Permalink
Post by Rick Pasotto
What did I update recently that caused me to lose ls coloring with this
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-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@eternity.smila.com
d***@gmail.com
2010-05-09 20:40:02 UTC
Permalink
Post by Rick Pasotto
What did I update recently that caused me to lose ls coloring with this
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
Rick Pasotto
2010-05-09 21:20:01 UTC
Permalink
Post by d***@gmail.com
Post by Rick Pasotto
What did I update recently that caused me to lose ls coloring with this
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.
Post by d***@gmail.com
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?
Post by d***@gmail.com
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 ***@niof.net http://www.niof.net
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@niof.net
Rick Pasotto
2010-05-09 21:50:01 UTC
Permalink
Post by Rick Pasotto
What did I update recently that caused me to lose ls coloring with this
What exactly (Stable, Testing, Sid) did you update, and what command
did you use to update it?
Testing. aptitude.
Post by Rick Pasotto
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 ***@niof.net http://www.niof.net
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@niof.net
Ron Johnson
2010-05-09 22:10:02 UTC
Permalink
Post by Rick Pasotto
Post by Rick Pasotto
What did I update recently that caused me to lose ls coloring with this
What exactly (Stable, Testing, Sid) did you update, and what command
did you use to update it?
Testing. aptitude.
There's a dozen different upgrade methods. Which one did you use?
Post by Rick Pasotto
Post by Rick Pasotto
ls: unrecognized prefix: hl
ls: unparsable value for LS_COLORS environment variable
How should I fix it?
--
Dissent is patriotic, remember?
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@cox.net
Ron Johnson
2010-05-09 21:50:01 UTC
Permalink
Post by Rick Pasotto
What did I update recently that caused me to lose ls coloring with this
What exactly (Stable, Testing, Sid) did you update, and what command
did you use to update it?
Post by Rick Pasotto
ls: unrecognized prefix: hl
ls: unparsable value for LS_COLORS environment variable
How should I fix it?
--
Dissent is patriotic, remember?
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@cox.net
godo
2010-05-10 08:50:01 UTC
Permalink
Post by Rick Pasotto
What did I update recently that caused me to lose ls coloring with this
ls: unrecognized prefix: hl
ls: unparsable value for LS_COLORS environment variable
How should I fix it?
Hi,
looks like coreutils bug
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544871

Which version you have?
My is 8.5-1 and I don't have problem with ls coloring.
--
Bye,
Goran Dobosevic
Hrvatski: www.dobosevic.com
English: www.dobosevic.com/en/
Registered Linux User #503414
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@dobosevic.com
SM
2010-05-10 08:58:34 UTC
Permalink
Post by Rick Pasotto
What did I update recently that caused me to lose ls coloring with this
ls: unrecognized prefix: hl
ls: unparsable value for LS_COLORS environment variable
How should I fix it?
Sourcing my alias file fixed it for me. Zsh in use.
--
kasmra
:wq
Mart Frauenlob
2010-05-10 09:50:03 UTC
Permalink
Post by Rick Pasotto
What did I update recently that caused me to lose ls coloring with this
ls: unrecognized prefix: hl
ls: unparsable value for LS_COLORS environment variable
How should I fix it?
Using lenny here, but it has been set in .bashrc afaik at least for the
last 3 debian releases. Doesn't your ~/.bashrc contain something like:

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'


Best regards

Mart
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@chello.at
Loading...