File: 02-man_egrep_fgrep_rgrep.patch

package info (click to toggle)
grep 3.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,556 kB
  • sloc: ansic: 111,824; sh: 13,272; perl: 606; makefile: 394; awk: 71; sed: 16
file content (39 lines) | stat: -rw-r--r-- 1,002 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Include the Debian-specific egrep, fgrep, rgrep in the man page

Index: grep/doc/grep.in.1
===================================================================
--- grep.orig/doc/grep.in.1
+++ grep/doc/grep.in.1
@@ -137,7 +137,7 @@
 .hy 0
 .
 .SH NAME
-grep \- print lines that match patterns
+grep, egrep, fgrep, rgrep \- print lines that match patterns
 .
 .SH SYNOPSIS
 .B grep
@@ -184,6 +184,23 @@ If no
 .I FILE
 is given, recursive searches examine the working directory,
 and nonrecursive searches read standard input.
+.PP
+Debian also includes the variant programs
+.BR egrep ,
+.B fgrep
+and
+.BR rgrep .
+These programs are the same as
+.BR "grep\ \-E" ,
+.BR "grep\ \-F" ,
+and
+.BR "grep\ \-r" ,
+respectively.
+These variants are deprecated upstream, but Debian provides for backward
+compatibility. For portability reasons, it is recommended to avoid the variant
+programs, and use
+.B grep
+with the related option instead.
 .
 .SH OPTIONS
 .SS "Generic Program Information"