Package: grep / 2.20-4.1

85-412370-F-x-documentation.patch Patch series | download
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
40
41
42
43
44
45
46
47
Closes: https://bugs.debian.org/412370
--- a/doc/grep.in.1
+++ b/doc/grep.in.1
@@ -104,8 +104,8 @@
 .BR \-F ", " \-\^\-fixed\-strings
 Interpret
 .I PATTERN
-as a list of fixed strings, separated by newlines,
-any of which is to be matched.
+as a list of fixed strings (rather than regular expressions), separated by
+newlines, any of which is to be matched.
 .RB ( \-F
 is specified by \s-1POSIX\s0.)
 .TP
@@ -165,6 +165,7 @@
 .TP
 .BR \-x ", " \-\^\-line\-regexp
 Select only those matches that exactly match the whole line.
+This option has the same effect as anchoring the expression with ^ and $.
 .RB ( \-x
 is specified by \s-1POSIX\s0.)
 .TP
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -239,8 +239,9 @@
 @opindex -x
 @opindex --line-regexp
 @cindex match the whole line
-Select only those matches that exactly match the whole line.
-(@option{-x} is specified by POSIX.)
+Select only those matches that exactly match the whole line. This option
+has the same effect as anchoring the expression with @samp{^} and
+@samp{$}. (@option{-x} is specified by POSIX.)
 
 @end table
 
@@ -1073,8 +1074,8 @@
 @opindex -F
 @opindex --fixed-strings
 @cindex matching fixed strings
-Interpret the pattern as a list of fixed strings, separated
-by newlines, any of which is to be matched.
+Interpret the pattern as a list of fixed strings (rather than regular
+expressions), separated by newlines, any of which is to be matched.
 (@option{-F} is specified by POSIX.)
 
 @item -P