ls Colors is not making sense
Hi: Suse 9.1 I have an environment var called LS_COLORS set automatically by Suse which for a link has ln=00;36 which I take it should be cyan. However my links show red. I unset LS_COLORS, then my links show cyan. I look in the man page and info page for ls, of course they specify that: --color[=WHEN] control whether color is used to distinguish file types. WHEN may be never', always', or auto' Let's see here:
alias ls alias ls='/bin/ls $LS_OPTIONS'
But of course my LS_OPTIONS variable is set to:
echo $LS_OPTIONS -N --color=tty -T 0
So what is going on here? Does Suse know what they are doing? Why are options being used on ls that are inconsistent with the docs?!?! Of course I don't trust the docs very much considering that they are unable to organize them and even alphabetize them for that matter. Nor do the info docs state to what version of the programs they apply to. At least the man page for ls agrees with the ls --version. The info pages attempt to be cool by organizing info into little hyperlinked categories, but only succeed in making it more of a chore to find what you are looking for. Where does the ls info explain what env vars affect ls? What is /etc/DIR_COLORS used for? Why did my links show red? Thanks for input. -- Good day! ________________________________________ Christopher R. Carlen Principal Laser&Electronics Technologist Sandia National Laboratories PO Box 969 MS 9053 Livermore, CA 94550 USA crcarle@sandia.gov (925) 294-1562 (925) 294-1562 [fax]
Does anyone know why the IPW2200 driver supplied with the 9.3 distribution does not load properly? I have to execute 'yast2 lan' everytime to get it to load and work. Thanks, LDB
On 09/15/2005 10:44 AM, Chris Carlen wrote:
Hi:
Suse 9.1
I have an environment var called LS_COLORS set automatically by Suse which for a link has ln=00;36 which I take it should be cyan. However my links show red. My system (9.3) is set up same as yours, and it's giving all the colours as advertised. Check for the existence of ~/.dir_colors.
<snip>
So what is going on here? Does Suse know what they are doing? Why are options being used on ls that are inconsistent with the docs?!?! Of course I don't trust the docs very much considering that they are unable to organize them and even alphabetize them for that matter. Nor do the info docs state to what version of the programs they apply to. What options being used are inconsistent with the docs?
The info pages attempt to be cool by organizing info into little hyperlinked categories... and were written by the guys who wrote the program code. Generally such folx make very poor documentation authors, if for no other reason than it is obvious to them what the program does, and how. If you have a beef with the quality of the documentation, they do call this stuff "open source" for good reason. Get involved and do something about it. You will get your name up in lights if you do :)
What is /etc/DIR_COLORS used for? cat /etc/DIR_COLORS
participants (3)
-
Chris Carlen
-
Darryl Gregorash
-
Lawrence Bowie