Blame SOURCES/grep-3.31-man-fix-gs.patch

b18c53
diff --git a/doc/grep.in.1 b/doc/grep.in.1
b18c53
index 40c9586..a4e89eb 100644
b18c53
--- a/doc/grep.in.1
b18c53
+++ b/doc/grep.in.1
b18c53
@@ -335,7 +335,7 @@ Print
b18c53
 .I NUM
b18c53
 lines of trailing context after matching lines.
b18c53
 Places a line containing a group separator
b18c53
-.RB ( \-\^\- )
b18c53
+.RB "(described under " \-\^\-group\-separator )
b18c53
 between contiguous groups of matches.
b18c53
 With the
b18c53
 .B \-o
b18c53
@@ -348,7 +348,7 @@ Print
b18c53
 .I NUM
b18c53
 lines of leading context before matching lines.
b18c53
 Places a line containing a group separator
b18c53
-.RB ( \-\^\- )
b18c53
+.RB "(described under " \-\^\-group\-separator )
b18c53
 between contiguous groups of matches.
b18c53
 With the
b18c53
 .B \-o
b18c53
@@ -361,13 +361,24 @@ Print
b18c53
 .I NUM
b18c53
 lines of output context.
b18c53
 Places a line containing a group separator
b18c53
-.RB ( \-\^\- )
b18c53
+.RB "(described under " \-\^\-group\-separator )
b18c53
 between contiguous groups of matches.
b18c53
 With the
b18c53
 .B \-o
b18c53
 or
b18c53
 .B \-\^\-only\-matching
b18c53
 option, this has no effect and a warning is given.
b18c53
+.TP
b18c53
+.BI \-\^\-group\-separator= SEP
b18c53
+Use
b18c53
+.I SEP
b18c53
+as a group separator. By default
b18c53
+.I SEP
b18c53
+is double hyphen
b18c53
+.RB ( \-\^\- ).
b18c53
+.TP
b18c53
+.B \-\^\-no\-group-separator
b18c53
+Use empty string as a group separator.
b18c53
 .SS "File and Directory Selection"
b18c53
 .TP
b18c53
 .BR \-a ", " \-\^\-text
b18c53
diff --git a/src/grep.c b/src/grep.c
b18c53
index 8d22aec..a2de03d 100644
b18c53
--- a/src/grep.c
b18c53
+++ b/src/grep.c
b18c53
@@ -1986,6 +1986,8 @@ Context control:\n\
b18c53
 "));
b18c53
       printf (_("\
b18c53
   -NUM                      same as --context=NUM\n\
b18c53
+      --group-separator=SEP use SEP as a group separator\n\
b18c53
+      --no-group-separator  use empty string as a group separator\n\
b18c53
       --color[=WHEN],\n\
b18c53
       --colour[=WHEN]       use markers to highlight the matching strings;\n\
b18c53
                             WHEN is 'always', 'never', or 'auto'\n\