2 ms·
fgrep and egrep have been indicated as obsolescent by the Single Unix Specification and POSIX since the late 1980's. The man page for GNU grep says: In addi
by kazinator 4y ago
fgrep and egrep have been indicated as obsolescent by the Single Unix Specification and POSIX since the late 1980's.
The man page for GNU grep says:
In addition, the variant programs egrep, fgrep and rgrep are the same
as grep -E, grep -F, and grep -r, respectively. These variants are
deprecated, but are provided for backward compatibility.
"Deprecated" should be read as "maybe ain't gonna be around one day". "Use interactively, or in your personal setup, but don't put into shipping code".
So if you wrote a script yesterday with these things, you're just one of those people who don't look into specs or man pages.
The scripts of coders who don't read documentation are going to tend not to be portable or reliable anyway. That doesn't mean we should break things left and right to trip people up, but in this case the writing has been on the wall for a very long time.