Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 107601 - grep supports showing coloured matches but it's not enabled by default
grep supports showing coloured matches but it's not enabled by default
Product: Red Hat Linux Beta
Classification: Retired
Component: grep (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Mike McLean
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2003-10-20 18:33 EDT by Matt Perry
Modified: 2007-04-18 12:58 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-10-21 04:59:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matt Perry 2003-10-20 18:33:56 EDT
Grep supports showing matches in a colour since RedHat 7.3 but it's not enabled
by default like colour support in "ls" is.  These attachments can go in
/etc/profile.d and will set the aliases for grep to show coloured matches.

Version-Release number of selected component (if applicable):
Comment 1 Matt Perry 2003-10-20 18:36:12 EDT
Not worth making attachments, I guess. 

Put this in /etc/profile.d/colorgrep.csh:

  alias grep 'grep --color=tty'

Put this in /etc/profile.d/colorgrep.sh:

  alias grep='grep --color=tty' 2>/dev/null
Comment 2 Tim Waugh 2003-10-21 04:59:43 EDT
Guaranteed that as soon as this happens there will be bug reports saying to turn
it off.  This is a user preference thing I think.

Note You need to log in before you can comment on or make changes to this bug.