color 'ls' bug ???

color 'ls' bug ???

Post by Tim Carlie » Fri, 27 Oct 1995 04:00:00



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.
-----------------------------------------------------------------------

 
 
 

color 'ls' bug ???

Post by Andreas Kaes » Fri, 27 Oct 1995 04:00:00



> ...
> In /etc/DIR_COLORS or ~/.dir_colors (either), you can specify any of
> 'none', 'all' or 'tty' for the 'COLOR' option.
> ...
> COLOR none
> ...
> genesis:~> ls -al
> Segmentation fault
> genesis:~>
> ...

I just tried to reproduce that - I couldn't. Just works fine.
uname -a:  Linux cnex 1.2.11 #9 Fri Aug 25 20:53:02 MET DST 1995 i486
ls --version:  GNU fileutils 3.9

Happy Hacking

Andreas
--
-----------------------------------------------------------------------------
Andreas Kaeser           Metzer Strasse 13a       D-58332 Schwelm          


 
 
 

1. alias ls='ls -a --color=auto'

hi,
i want to edit the bash settings so that whenever i type ls, i
automatically get ls -a --color=auto.  however, adding the above line
in /etc/bash.bashrc seems to only work for root, and adding it to
/home/andrew/.bashrc seems to have absolutely no effect.  any help
here?
tia,
andrew

2. LINUX GUIs

3. color ls and 'more' or 'less'

4. boot messages

5. color-ls doesn't show color dir's.

6. Free unix-likes

7. Colours of output from 'ls --color' - how are they set?

8. porting....

9. 64k files in dir - 'ls' slow but 'strace ls' fast?

10. 'ls -e' vs 'ls -l'

11. Controlling file coloring by 'ls'

12. changing the colors output by 'ls'

13. color ls after issuing a 'su' ?