[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #28329] egrep/fgrep should accept respectively -E/-F
From: |
Paolo Bonzini |
Subject: |
[bug #28329] egrep/fgrep should accept respectively -E/-F |
Date: |
Fri, 18 Dec 2009 11:51:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091105 Fedora/3.5.5-1.fc12 Firefox/3.5.5 |
Update of bug #28329 (project grep):
Severity: 3 - Normal => 2 - Minor
Summary: egrep error when GREP_OPTIONS=-E => egrep/fgrep
should accept respectively -E/-F
_______________________________________________________
Follow-up 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.
If you want to save a letter on every grep invocation, use "alias grep='grep
-E'" instead so that scripts do not have automatic -E. This would fix the
issue, since egrep would not see the -E instead.
That said, adding support for -E in egrep and -F in fgrep does have some
merit, so I'm changing the summary and leaving the bug open.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28329>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/