grep - Bugs: bug #28329, egrep/fgrep should accept...
You are not allowed to post comments on this tracker with your current authentication level.
bug #28329: egrep/fgrep should accept respectively -E/-F
Submitter: | None | ||
Submitted: | Fri 18 Dec 2009 04:19:21 AM UTC | ||
Category: | None | Severity: | 2 - Minor |
Item Group: | None | Status: | Fixed |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Mon 22 Mar 2010 10:51:01 AM UTC, comment #4: |
Paolo Bonzini <bonzini> |
Sat 19 Dec 2009 04:00:25 AM UTC, comment #3:
|
Tim H <gnus_notaa919687> |
Fri 18 Dec 2009 11:21:49 PM UTC, comment #2: Irrelevant to the ticket, but FWIW, I use GREP_OPTIONS to do excludes:
|
Karl Berry <karl> |
Fri 18 Dec 2009 11:51:45 AM UTC, comment #1: I think setting -E in GREP_OPTIONS is an incredibly bad idea :-) as it will break scripts. In fact, there are very few options suitable for GREP_OPTIONS: --line-buffered, --binary-files (and synonyms), --devices, --mmap, --binary, and probably nothing else.
|
Paolo Bonzini <bonzini> |
Fri 18 Dec 2009 04:19:21 AM UTC, original submission:
When the environment variable <b>GREP_OPTIONS=-E</b>, egrep reports an 'unknown option' error.
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2010-03-22 | bonzini | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2009-12-18 | bonzini | Severity | 3 - Normal | 2 - Minor | |
Summary | egrep error when GREP_OPTIONS=-E | egrep/fgrep should accept respectively -E/-F |
Powered by Savane 3.13-4448.
Corresponding source code
I still think setting -E in GREP_OPTIONS is a bad idea. You said
But then you're making everybody else spend time figure out why your scripts break for them. Include the alias in your scripts too.
Nevertheless, grep 2.6 will support -E in egrep and -F in fgrep.
Thank you for the bug report. This bug has been fixed in the
development sources, which can be downloaded using git from
git://git.sv.gnu.org/grep.git