From unknown Wed Jun 18 22:56:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#47834 <47834@debbugs.gnu.org> To: bug#47834 <47834@debbugs.gnu.org> Subject: Status: grep: Document --group-separator/--no-group-separator Reply-To: bug#47834 <47834@debbugs.gnu.org> Date: Thu, 19 Jun 2025 05:56:59 +0000 retitle 47834 grep: Document --group-separator/--no-group-separator reassign 47834 grep submitter 47834 Kevin Locke severity 47834 minor tag 47834 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 16 20:14:34 2021 Received: (at submit) by debbugs.gnu.org; 17 Apr 2021 00:14:34 +0000 Received: from localhost ([127.0.0.1]:41970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXYbZ-00031c-SV for submit@debbugs.gnu.org; Fri, 16 Apr 2021 20:14:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:33646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXYbZ-00031W-0U for submit@debbugs.gnu.org; Fri, 16 Apr 2021 20:14:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXYbY-0003GY-Rr for bug-grep@gnu.org; Fri, 16 Apr 2021 20:14:32 -0400 Received: from vulcan.kevinlocke.name ([107.191.43.88]:37042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXYbW-0006LL-Qn for bug-grep@gnu.org; Fri, 16 Apr 2021 20:14:32 -0400 Received: from kevinolos.kevinlocke.name (host-69-145-60-23.bln-mt.client.bresnan.net [69.145.60.23]) (Authenticated sender: kevin@kevinlocke.name) by vulcan.kevinlocke.name (Postfix) with ESMTPSA id C611B22191B7 for ; Sat, 17 Apr 2021 00:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kevinlocke.name; s=vulcan; t=1618618465; bh=wPc+ZZBhck9Y282tqbIvWQ8uAQG0Z7frAQTpeoXs/sA=; h=Date:From:To:Subject:From; b=neFIbgXV+ejyYD2msIaa538b99PBDbd3rsKFe3f/UDzMORYuMQ1SMtJI8Ho24ncZk gBbdpR5GL2+gtTTbDW5z/MNfrsiJ8RK/0C+VR3aAbXspnm6DI597AR28zyiRe8u3CC KNSoMDBfk9lhUbsgwrgM5cwKXti8T5Wd26AXOKGk= Received: by kevinolos.kevinlocke.name (Postfix, from userid 1000) id B70EB13002F4; Fri, 16 Apr 2021 18:14:23 -0600 (MDT) Date: Fri, 16 Apr 2021 18:14:23 -0600 From: Kevin Locke To: bug-grep@gnu.org Subject: grep: Document --group-separator/--no-group-separator Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1h1KrquGJEgSXj4n" Content-Disposition: inline Received-SPF: pass client-ip=107.191.43.88; envelope-from=kevin@kevinlocke.name; helo=vulcan.kevinlocke.name X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --1h1KrquGJEgSXj4n Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Severity: minor Tags: patch Dear Maintainer, It would be great if the grep.1 man page and --help usage information included the --group-separator and --no-group-separator options (which are already documented in grep.texi). I've attached patches to do that. Thanks, Kevin --1h1KrquGJEgSXj4n Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-doc-man-add-group-separator-no-group-separator.patch" >From 20053444457c5b4d9b0855a5d06a817272b78de7 Mon Sep 17 00:00:00 2001 Message-Id: <20053444457c5b4d9b0855a5d06a817272b78de7.1618618172.git.kevin@kevinlocke.name> From: Kevin Locke Date: Fri, 16 Apr 2021 16:30:16 -0600 Subject: [PATCH 1/2] doc: man: add --group-separator/--no-group-separator * doc/grep.in.1: Add copy of docs for --group-separator from doc/grep.texi. Add copy of docs for --no-group-separator from doc/grep.texi. --- doc/grep.in.1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/grep.in.1 b/doc/grep.in.1 index c0b6b405..77c2e0ab 100644 --- a/doc/grep.in.1 +++ b/doc/grep.in.1 @@ -482,6 +482,26 @@ With the or .B \-\^\-only\-matching option, this has no effect and a warning is given. +.TP +.BI \-\^\-group\-separator= SEP +When +.BR \-A , +.BR \-B , +or +.B \-C +are in use, print +.I SEP +instead of +.B \-\^\- +between groups of lines. +.TP +.B \-\^\-no\-group\-separator +When +.BR \-A , +.BR \-B , +or +.B \-C +are in use, do not print a separator between groups of lines. .SS "File and Directory Selection" .TP .BR \-a ", " \-\^\-text -- 2.30.2 --1h1KrquGJEgSXj4n Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0002-doc-usage-group-separator-no-group-separator.patch" >From c1cb88a181994b524955d4fcfc5c66ea5d3ae3f8 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: <20053444457c5b4d9b0855a5d06a817272b78de7.1618618172.git.kevin@kevinlocke.name> References: <20053444457c5b4d9b0855a5d06a817272b78de7.1618618172.git.kevin@kevinlocke.name> From: Kevin Locke Date: Fri, 16 Apr 2021 18:07:19 -0600 Subject: [PATCH 2/2] doc: usage: --group-separator/--no-group-separator * src/grep.c (usage): Add --group-separator to --help usage message. Add --no-group-separator to --help usage message. --- src/grep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/grep.c b/src/grep.c index d27d79e5..04768275 100644 --- a/src/grep.c +++ b/src/grep.c @@ -2048,6 +2048,8 @@ Context control:\n\ ")); printf (_("\ -NUM same as --context=NUM\n\ + --group-separator=SEP print SEP on line between matches with context\n\ + --no-group-separator do not print separator for matches with context\n\ --color[=WHEN],\n\ --colour[=WHEN] use markers to highlight the matching strings;\n\ WHEN is 'always', 'never', or 'auto'\n\ -- 2.30.2 --1h1KrquGJEgSXj4n-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 07 01:23:10 2021 Received: (at 47834-done) by debbugs.gnu.org; 7 Aug 2021 05:23:10 +0000 Received: from localhost ([127.0.0.1]:51782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCEnd-0004nn-RM for submit@debbugs.gnu.org; Sat, 07 Aug 2021 01:23:10 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:35379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCEnc-0004na-C0 for 47834-done@debbugs.gnu.org; Sat, 07 Aug 2021 01:23:08 -0400 Received: by mail-wr1-f51.google.com with SMTP id n12so3665295wrr.2 for <47834-done@debbugs.gnu.org>; Fri, 06 Aug 2021 22:23:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yrGqr/Ebe5sY6wLMXJ4aGiyF72ZOMeTbTNVL7du269s=; b=Gb0mB+tkZX3fFpYg6MOYrKSRg8Td4txCW8xob9igUBIKtOF/+3xUhnTlmYZ/WJo5hh JO3/xXOD6tj1AezIIA9HLcnifX46wAuylsMLztErPJY2ojteDyxLYJ2ZWFv+MAgFkw7H F2JbMkWKM25JeOCoKKZ7IE+x2SaNzCW0r+SAntNCV9pf2THZkCqnPbsMZ4uPRzMbX68i IbSnfAKCR97Wng42NkEzqjtIjUjNzwbFKjtVJWErCZz/7noy4ZQlQP0XypsvQQSEtEMT FixCOSpxPi5vgAverZimAPzG2Uk/UpVK3PW+isD1E5Ig5BYvXVrgLXcMM1Uvg+65dto+ JBKQ== X-Gm-Message-State: AOAM533WPm7VfBKtdhjRk/vQAwBiZ3qvicIpJBbr4T04OxV+5Y+SMONG SyFOzG5WB20PROt43Kf8A/IUtHYbHUCi39LRbhI= X-Google-Smtp-Source: ABdhPJwiDe/dZuJ9aFcRqrBCCFc3l5hykYI5Y0nVoWFKwv0vJaanqpaJ7XCt4iZ33CEbouE/yfcAAznCynZUq66GSAM= X-Received: by 2002:a5d:658a:: with SMTP id q10mr14260212wru.343.1628313782547; Fri, 06 Aug 2021 22:23:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jim Meyering Date: Fri, 6 Aug 2021 22:22:50 -0700 Message-ID: Subject: Re: bug#47834: grep: Document --group-separator/--no-group-separator To: Kevin Locke Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 47834-done Cc: 47834-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On Fri, Apr 16, 2021 at 5:15 PM Kevin Locke wrote: > It would be great if the grep.1 man page and --help usage information > included the --group-separator and --no-group-separator options (which > are already documented in grep.texi). I've attached patches to do that. Thank you. I've applied those with one tiny change: I added an additional space between the option spec and its description to placate "make syntax-check". From unknown Wed Jun 18 22:56:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Sep 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator