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/



Reply via email to