]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Fix --color behaviour to only output color sequences if stdout is a tty
authorGabor Kovesdan <gabor@FreeBSD.org>
Sun, 25 Jul 2010 08:42:18 +0000 (08:42 +0000)
committerGabor Kovesdan <gabor@FreeBSD.org>
Sun, 25 Jul 2010 08:42:18 +0000 (08:42 +0000)
commit271162867506f2f496955c5bd587b03904c4b199
tree1cfc486a9c000ac3f509a7af3ec225fe78b2b9a3
parent5343524a9e18a5d644567b93aaaa42efec7c3fb5
- 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