aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-06-23 18:11:46 +0800
committerXi Ruoyao <xry111@xry111.site>2022-06-23 18:11:46 +0800
commit40488bd037b36726f17c26bba8f2b36e051db0a2 (patch)
tree6da5d0701144268165087104de327acb3ee117a2
parent0b0fa07cd497c31d24c64359e50d65641986b81f (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>