Hi all,
I don't know how many of you out there have fiddled with the color
options file for 'ls' at all, but the other day I noticed this:
In /etc/DIR_COLORS or ~/.dir_colors (either), you can specify any of
'none', 'all' or 'tty' for the 'COLOR' option.
(taken from the DIR_COLORS file):
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
# off.
COLOR none
I tried (out of interest) setting this value to 'none' as above and got
the following result:
genesis:~> ls -al
Segmentation fault
genesis:~>
I've tried 'tty' and 'all' - these both work fine. But it was when I tried
'none' that I noticed the seg fault! :) Oops!
Has anyone else noticed this? I guess by default everyone has the color
option on and may not have noticed!
I checked the man page for ls, but couldn't find any bug-report addresses
- perhaps someone can pass this on to the GNU people if they haven't
already been made aware of the problem.
Cheers,
-----------------------------------------------------------------------
Real progammers don't bring brown-bag lunches. If the vending machine
doesn't sell it, they don't eat it. Vending machines don't sell quiche.
-----------------------------------------------------------------------