The egrep command has been deprecated in favour of grep -E.
The POSIX definition for grep includes the following note,
This
grephas been enhanced in an upwards-compatible way to provide the exact functionality of the historicalegrepandfgrepcommands as well. It was the clear intention of the standard developers to consolidate the threegreps into a single command.The old
egrepandfgrepcommands are likely to be supported for many years to come as implementation extensions, allowing historical applications to operate unmodified.
There is no POSIX command definition entry for egrep itself, however.
Does this section confirm that egrep is a recognised POSIX command (even if one that is deprecated), or does it merely note that the command used to exist and should be (as distinct from must be) supported for the foreseeable future?
Trying to put it another way, what is the situation of egrep with respect to POSIX?
egrep. – forest Mar 30 '22 at 23:00