🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #59920

color 'ls' bug ???

#59920
From: Tim Carlier
Date: Thu, 26 Oct 1995 00:00
40 lines
2012 bytes
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,

-----------------------------------------------------------------------
Tim A. Carlier                Internet: st953607@pilot.stu.cowan.edu.au

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.
-----------------------------------------------------------------------
Technical Details
Message-ID: <Pine.A32.3.91.951026081557.28710A-100000@pilot.stu.cowan.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1103af,c2494bf36573c343,start
X-Google-Attributes: gid1103af,public
X-Google-Thread: 102983,c2494bf36573c343,start
X-Google-Attributes: gid102983,public
From: Tim Carlier <st953607@pilot.stu.cowan.edu.au>
Subject: color 'ls' bug ???
Date: 1995/10/26
Message-ID: <Pine.A32.3.91.951026081557.28710A-100000@pilot.stu.cowan.edu.au>
X-Deja-AN: 118089999
organization: Edith Cowan University
content-type: TEXT/PLAIN; charset=US-ASCII
mime-version: 1.0
newsgroups: aus.computers.linux,comp.os.linux.misc