]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Fix --color behaviour to only output color sequences if stdout is a tty
authorgabor <gabor@FreeBSD.org>
Sun, 25 Jul 2010 08:42:18 +0000 (08:42 +0000)
committergabor <gabor@FreeBSD.org>
Sun, 25 Jul 2010 08:42:18 +0000 (08:42 +0000)
commit6a65a7e10a4189931f5ab166f4c918fd56f8ff6a
tree1cfc486a9c000ac3f509a7af3ec225fe78b2b9a3
parent983ba731fd264c25e66b047dc2e3d3829e9cd04a
- Fix --color behaviour to only output color sequences if stdout is a tty
  or if forced mode is specified [1]
- While here, add some alternative names for the options and make then
  case-insensitive
- Fix -q and -l behaviour [2]
- Some small changes to make the code easier to review

Submitted by:   swell.k@gmail.com [1],
                dougb [2]
Approved by:    delphij (mentor)
usr.bin/grep/grep.c
usr.bin/grep/grep.h
usr.bin/grep/util.c