Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 11-21-2002, 02:09 PM   #1
EatingPie
Triple-A Player
 
Join Date: Jan 2002
Posts: 63
Gnu Fileutils 4.1, Colors and csh Failure

Hi.

Kind of an FYI post...

I used fink to installed gnu fileutils 4.1, and started getting the following error from csh and shell scripts using csh:

Unknown colorls variable `do'.

The LS_COLORS environment variable was the problem. Here's what happened.

I ran the folowing command to create my own color settings for ls et al.

% dircolors -p > ~/.dircolorsrc

This created a dump of the default dircolors settings, which I edited to my liking. I then added the following to my .bashrc:

eval `dircolors ~/.dircolorsrc`

Which set my LS_COLORS variable. Unfortunately, embedded within the LS_COLORS is the following:

do=00;35

This little element is the `do` in the above error message, and the culprit.

One solution is to simply not set LS_COLORS. Another is to generate LS_COLORS without the 'do=...' entry.

When you run the dircolors command to look at the current color database settings, you will see an entry tagged DOOR:

% dircolors -p | grep DOOR
DOOR 01;35 # door

This coresponds to the 'do=01;35' in LS_COLORS.

So when you create a dircolors settings file, simply DO NOT define the DOOR setting (I just commented it out). You lose the ability to customize this particular element, but it's better than not customizing anything.

-Pie
EatingPie is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 10:31 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.