The grep 3.8 man page at https://www.gnu.org/software/grep/manual/grep.html
says, under "What happened to egrep and fgrep?":
egrep and fgrep were not standardized by POSIX
This is factually incorrect. They were included in POSIX.2-1992 but marked as
obsolescent. When POSIX.2-1992 and POSIX.1-19
On 9/6/22 07:28, Geoff Clare wrote:
They were included in POSIX.2-1992 but marked as obsolescent.
Ouch, as I recall reading POSIX.2-1992 and seeing egrep and fgrep
mentioned, but not as part of the standard. I guess I misread the
standard. I am away from my printed copy and so cannot easily c
Actually, egrep and fgrep were not entirely portable
They were portable to every system I ever used (admittedly not the
entire world), before POSIX got involved.
These days, my impression is that it's more portable to use grep -E
than to use egrep.
I agree. And IMHO that is a bug PO
On 9/6/22 15:33, Karl Berry wrote:
Since it bothers you to use POSIXLY_CORRECT, let's invent
some other envvar that turns off the warning, like
"PLEASE_LET_ME_USE_EFGREP_I_DONT_CARE_ABOUT_POSIX", and Arnold and I
will set it and life can go on.
Python has PYTHONWARNINGS. I suppose GNU Grep coul