Thanks Alexander -- it had slipped past me that 10.2 had added bash. I switched to that, but the problem remained. However, for any of you out there who might be having this same problem, HERE IS A SOLUTION:

The culprit was the line
eval `dircolors -b`
in my .bashrc, up there above
alias ls='ls --color=auto'
(dircolors sets the LS_COLORS environment variable; the -b option specifies Bash format)

But there's a problem with that generic output. Amont the color init strings for basic file types is the line:
DOOR 01;35 # door
which causes an error (e.g. when trying to use the command "which") with the output:
Unknown colorls variable `do'.
(I guess the DO in DOOR gets parsed as "do" somewhere along the line...?)

The solution is to save the dircolors to a file:
dircolors --print-database > .mydircolorsfile
Then edit the file, removing or commenting out the offending DOOR... line.
Finally, replace
eval `dircolors -b`
with
eval `dircolors .mydircolorsfile`
(specifying the path to the file if you need to, of course).

Now everything seems to be back to normal. You get your lscolors, you get your `which', you get the whole deal.

--Leo


On Friday, Oct 11, 2002, at 06:21 US/Pacific, Alexander Hansen wrote:

I don't remember hearing about it on this list before.

Maybe try uninstalling the fink bash--since you're on 10.2 you can use
the built-in bash.

On Thu, 2002-10-10 at 22:31, Leo Daedalus wrote:
Ever since I installed Fink* when I try something like 'which' or
somehow evoke tcsh (I'm using bash, from Fink) I get the error:
Unknown colorls variable `do'.
I would think this must be a common error, and I even found some
3-year-old postings on (e.g. GNU) mailing lists alluding to this issue,
but nothing resembling a solution.

Anyone have any suggestions? (Though I'm not an absolute newbie, I'm
nowhere near a *nix adept.)

Thx,
Leo

*I first installed Fink a few months ago on OS 10.1, then I upgraded to
10.2 and I just followed the "upgrading Fink for 10.2 instructions" on
the Fink site). I have:
Package manager version: 0.10.0.cvs
Distribution version: 0.4.9.cvs




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

--
Alexander K. Hansen
Associate Research Scientist, Columbia University
visiting MIT Plasma Science and Fusion Center
Levitated Dipole Experiment
175 Albany Street, NW17-219
Cambridge, MA  02139-4213


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to