Please update grep to version 2.5.3. One of the most notable features that it has is the new GREP_COLORS options that allows one to to more coloring of the output: it can color the file name, line number, context, and of course the match itself. The current version 2.5.1 can only color the match. When used on a 256 color terminal (all the terminal emulators nowadays) it can provide very nicely looking output. Here's an example setting for GREP_COLORS for a 256 color terminal: GREP_COLORS='mt=01;31:ml=36:cx=38;5;248:fn=35:ln=32:bn=32:se=38;5;250'
I have to second the upgrade request: I regulary work with large SVN (subversion) checkouts. In contrast to CVS SVN holds a copy of each file in a .svn folder. Now if you use grep to find something all hits are reported twice because it matches the real file and its copy. The new grep introduces the exclude-dir option so that .svn can be excluded. The already present --exclude option is only partially useful as not all files below .svn can be excluded by a specific pattern. So I vote for an update (or at least backporting the option if 2.5.3 is unstable in some regard).
This message is a reminder that Fedora 8 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 8. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '8'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 8's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 8 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Move the bug to F10
grep-2.5.4 has been release now... Time to upgrade...
F11 has 2.5.3 at least. So from my side this bug can be closed. But I'm not the original reporter ...
(In reply to comment #5) > F11 has 2.5.3 at least. So from my side this bug can be closed. But I'm not the > original reporter ... The bug has 2 parts: 1. upgrade to a newer grep. That is done now. 2. provide some "interesting" default for GREP_COLORS so that it can take advantage of the ability to highlight more things available in the newer grep: Here's what I use now for GREP_COLORS for an terminals that can display 256 colors (about all of them nowadays, the notable exception is the linux console): setenv GREP_COLORS 'mt=01;31:ml=36:cx=38;5;248:fn=35:ln=32:bn=32:se=38;5;250'
This message is a reminder that Fedora 10 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 10. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '10'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 10's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 10 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Fedora 10 changed to end-of-life (EOL) status on 2009-12-17. Fedora 10 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed.
Still needed in F12.
grep-2.6.1-1.fc12 is in testing. Can I close this?
(In reply to comment #10) > grep-2.6.1-1.fc12 is in testing. Can I close this? Will you also add some defaults for GREP_COLORS? For 256 color terminals (except for the Linux console all current terminal emulators support 256 colors) it is very to make use of more colors to highlight various things that grep can (context, line numbers, etc etc). Here's for example what I am using: mt=01;31:ml=36:cx=38;5;248:fn=35:ln=32:bn=32:se=38;5;250 this can be a starting point for someone that has better taste in choosing colors...
My opinion is that the minimal - work everywhere - setup from upstream is better choice here. Everybody has subjective taste and also there can be problems with non colour terminals. Installing custom colours is very easy thus no problem to customize. Maybe several examples could be mentioned on wiki or in documentation as starting point for experiments.
grep-2.6.3 is in F12. For GREP_COLORS I would prefer upstream defaults. Thus I am going to close this. If you are not satisfied, feel free to reopen.