aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-06-23 18:11:46 +0800
committerWilliam Harrington <kb0iic@berzerkula.org>2022-06-24 09:07:28 -0500
commit995347dad8e2921e64ca1e0d70dcb973e98ad3ef (patch)
tree7aa79591bfc10613f2ee7e1d3757e905c5dfc1ce
parentc07d5a87f2dc779d336ddcebf25bc3a12c3ed5f0 (diff)
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
-rw-r--r--chapter08/grep.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/chapter08/grep.xml b/chapter08/grep.xml
index d06a1ba85..9861d239f 100644
--- a/chapter08/grep.xml
+++ b/chapter08/grep.xml
@@ -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>