grep: mark egrep and fgrep obsolete

They are deprecated since 2007, and the next grep release (3.8 or 4.0)
will print a warning if they are used.

Url: https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a951562
This commit is contained in:
Xi Ruoyao 2022-06-23 18:11:46 +08:00 committed by William Harrington
parent c07d5a87f2
commit 995347dad8

View File

@ -77,7 +77,8 @@
<varlistentry id="egrep">
<term><command>egrep</command></term>
<listitem>
<para>Prints lines matching an extended regular expression</para>
<para>Prints lines matching an extended regular expression.
It is obsoleted, use <command>grep -E</command> instead</para>
<indexterm zone="ch-system-grep egrep">
<primary sortas="b-egrep">egrep</primary>
</indexterm>
@ -87,7 +88,8 @@
<varlistentry id="fgrep">
<term><command>fgrep</command></term>
<listitem>
<para>Prints lines matching a list of fixed strings</para>
<para>Prints lines matching a list of fixed strings.
It is obsoleted, use <command>grep -F</command> instead</para>
<indexterm zone="ch-system-grep fgrep">
<primary sortas="b-fgrep">fgrep</primary>
</indexterm>