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

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