GNU bug report logs - #57696
grep: Document that GREP_COLORS requires --color

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: grep; Reported by: Santiago Ruano Rincón <santiagorr@HIDDEN>; Keywords: patch; dated Fri, 9 Sep 2022 14:07:01 UTC; Maintainer for grep is bug-grep@HIDDEN.

Message received at 57696 <at> debbugs.gnu.org:


Received: (at 57696) by debbugs.gnu.org; 9 Sep 2022 18:15:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 09 14:15:44 2022
Received: from localhost ([127.0.0.1]:35434 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oWiXX-0004O4-N7
	for submit <at> debbugs.gnu.org; Fri, 09 Sep 2022 14:15:44 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55028)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1oWiXU-00043m-SG
 for 57696 <at> debbugs.gnu.org; Fri, 09 Sep 2022 14:15:42 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 57BD5160063;
 Fri,  9 Sep 2022 11:15:34 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id PM4C_QVasqXb; Fri,  9 Sep 2022 11:15:33 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 78EAD160082;
 Fri,  9 Sep 2022 11:15:33 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 78EAD160082
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1662747333;
 bh=2QFd2g8WntUnsVUvusRRZheBNhjdnxR2YcsMWKSxmYo=;
 h=Content-Type:Message-ID:Date:MIME-Version:Subject:To:From;
 b=a/eB3NUEpS+PvBQ+Rggnp/hFvLVuPty+ArA1GQ6J/KC04jv4LG8eXXVIiSsWXkY/p
 p3TYpkUfe0Gefd7kW7dv4g43cRjFfeTazlpjRqQ18Qdge8GM/M9cs6noOuozplmK24
 8TxbtCi3Cf4a5vASfAJfRTlzy0wf7RBN2EcHXuuQ=
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id pkicQbMhuwfb; Fri,  9 Sep 2022 11:15:33 -0700 (PDT)
Received: from [192.168.0.205] (ip72-206-2-24.fv.ks.cox.net [72.206.2.24])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2E696160063;
 Fri,  9 Sep 2022 11:15:33 -0700 (PDT)
Content-Type: multipart/mixed; boundary="------------PJ6wO4UKV7lbC026MD26li9R"
Message-ID: <265072a7-ba27-091d-2faf-427b410a9d40@HIDDEN>
Date: Fri, 9 Sep 2022 13:15:32 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.11.0
Subject: Re: bug#57696: grep: Document that GREP_COLORS requires --color
Content-Language: en-US
To: =?UTF-8?Q?Santiago_Ruano_Rinc=c3=b3n?= <santiagorr@HIDDEN>
References: <YxtILkHOrd2ax+/W@bartik>
From: Paul Eggert <eggert@HIDDEN>
In-Reply-To: <YxtILkHOrd2ax+/W@bartik>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57696
Cc: 57696 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

This is a multi-part message in MIME format.
--------------PJ6wO4UKV7lbC026MD26li9R
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Thanks for reporting the documentation problem. I installed the 
attached, which isn't the same as the patch you suggested but which I 
hope addresses the confusion concisely. Please let me know if it's still 
confusing. Thanks.
--------------PJ6wO4UKV7lbC026MD26li9R
Content-Type: text/x-patch; charset=UTF-8;
 name="0001-doc-improve-GREP_COLORS-doc-Bug-57696.patch"
Content-Disposition: attachment;
 filename="0001-doc-improve-GREP_COLORS-doc-Bug-57696.patch"
Content-Transfer-Encoding: base64

RnJvbSBiM2NkMmVlNGFlYWYwMTkzMGM4OGFjNjMyMGFmYTM0N2U3NGU5MWFhIE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1
PgpEYXRlOiBGcmksIDkgU2VwIDIwMjIgMTM6MTI6MjQgLTA1MDAKU3ViamVjdDogW1BBVENI
XSBkb2M6IGltcHJvdmUgR1JFUF9DT0xPUlMgZG9jIChCdWcjNTc2OTYpCgotLS0KIGRvYy9n
cmVwLmluLjEgfCA1ICsrKy0tCiBkb2MvZ3JlcC50ZXhpIHwgMyArLS0KIDIgZmlsZX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yaWFibGV9CiBAY2luZGV4IGhpZ2hsaWdodCBtYXJrZXJzCi1UaGlz
IHZhcmlhYmxlIHNwZWNpZmllcyB0aGUgY29sb3JzIGFuZCBvdGhlciBhdHRyaWJ1dGVzCi11
c2VkIHRvIGhpZ2hsaWdodCB2YXJpb3VzIHBhcnRzIG9mIHRoZSBvdXRwdXQuCitUaGlzIHZh
cmlhYmxlIGNvbnRyb2xzIGhvdyB0aGUgQG9wdGlvbnstLWNvbG9yfSBvcHRpb24gaGlnaGxp
Z2h0cyBvdXRwdXQuCiBJdHMgdmFsdWUgaXMgYSBjb2xvbi1zZXBhcmF0ZWQgbGlzdCBvZiBA
Y29kZXt0ZXJtaW5mb30gY2FwYWJpbGl0aWVzCiB0aGF0IGRlZmF1bHRzIHRvIEBzYW1we21z
PTAxOzMxOm1jPTAxOzMxOnNsPTpjeD06Zm49MzU6bG49MzI6Ym49MzI6c2U9MzZ9CiB3aXRo
IHRoZSBAc2FtcHtydn0gYW5kIEBzYW1we25lfSBib29sZWFuIGNhcGFiaWxpdGllcyBvbWl0
dGVkIChpLmUuLCBmYWxzZSkuCi0tIAoyLjM3LjIKCg==

--------------PJ6wO4UKV7lbC026MD26li9R--




Information forwarded to bug-grep@HIDDEN:
bug#57696; Package grep. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Sep 2022 14:06:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 09 10:06:18 2022
Received: from localhost ([127.0.0.1]:34859 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oWee9-0001SK-O6
	for submit <at> debbugs.gnu.org; Fri, 09 Sep 2022 10:06:17 -0400
Received: from lists.gnu.org ([209.51.188.17]:33448)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <santiagorr@HIDDEN>) id 1oWee4-0001S8-2c
 for submit <at> debbugs.gnu.org; Fri, 09 Sep 2022 10:06:16 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44788)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <santiagorr@HIDDEN>)
 id 1oWee3-0002zq-RT
 for bug-grep@HIDDEN; Fri, 09 Sep 2022 10:06:11 -0400
Received: from mx1.riseup.net ([198.252.153.129]:35146)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <santiagorr@HIDDEN>)
 id 1oWedz-0008OE-Sr
 for bug-grep@HIDDEN; Fri, 09 Sep 2022 10:06:11 -0400
Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
 client-signature RSA-PSS (2048 bits) client-digest SHA256)
 (Client CN "mail.riseup.net", Issuer "R3" (not verified))
 by mx1.riseup.net (Postfix) with ESMTPS id 4MPHns4f97zDrNy
 for <bug-grep@HIDDEN>; Fri,  9 Sep 2022 14:05:37 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1662732337; bh=v1M7E5P4lkaFPa9Lx9bsoggqYHegSFEjFzML+B2uEMM=;
 h=Date:From:To:Subject:From;
 b=fOp97veGTTfLnrZn05MQpLQSHzn5PWHLaQsiDC5+u4cHAuJFE7RUWr3CcCc6kzpbB
 hYtgWh+QoGTkwapmlh9xEBdxKXQAHaRrBjIb9DD7V3XopnqTjLh1iIcyE6Wzaq4nkv
 Qhlryk5zpgtHDY08YPFdzdW8nhwhg9NgAiOMd7k0=
X-Riseup-User-ID: A5AB2787D104F522D4B9F18771B1DEC84372B2F2EAA07D40BC220BB2EEE90492
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews2.riseup.net (Postfix) with ESMTPSA id 4MPHnr411Zz1yPV
 for <bug-grep@HIDDEN>; Fri,  9 Sep 2022 14:05:36 +0000 (UTC)
Date: Fri, 9 Sep 2022 16:05:34 +0200
From: Santiago Ruano =?iso-8859-1?Q?Rinc=F3n?= <santiagorr@HIDDEN>
To: bug-grep@HIDDEN
Subject: grep: Document that GREP_COLORS requires --color
Message-ID: <YxtILkHOrd2ax+/W@bartik>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="02GFKa9PnYhmMObD"
Content-Disposition: inline
Received-SPF: pass client-ip=198.252.153.129;
 envelope-from=santiagorr@HIDDEN; helo=mx1.riseup.net
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


--02GFKa9PnYhmMObD
Content-Type: multipart/mixed; boundary="wOrDOKF5ESkip8tz"
Content-Disposition: inline


--wOrDOKF5ESkip8tz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Tags: patch

Dear grep upstream developers,

Please, consider the attached patch to document that the GREP_OPTIONS
environment variable requires the --color option to be taken into
account.

This is to solve https://bugs.debian.org/792385

Cheers,

 -- Santiago

--wOrDOKF5ESkip8tz
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="06-792385-color-default.patch"
Content-Transfer-Encoding: quoted-printable

Description: Document that --color ir required for GREP_COLORS
Bug-Debian: http://bugs.debian.org/792385

Index: grep/doc/grep.in.1
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- grep.orig/doc/grep.in.1
+++ grep/doc/grep.in.1
@@ -1034,6 +1034,11 @@ with the
 and
 .B ne
 boolean capabilities omitted (i.e., false).
+Requires
+.B \-\^\-color=20
+to be
+.BR always ", or " auto=20
+for this environment variable to be taken into account.
 Supported capabilities are as follows.
 .RS
 .TP

--wOrDOKF5ESkip8tz--

--02GFKa9PnYhmMObD
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQRZVjztY8b+Ty43oH1itBCJKh26HQUCYxtIKgAKCRBitBCJKh26
HRPNAQCN2kqEtS/c8PC5xVaV3ydxcl78mKYWds7sZKwx9MqaDgEAnP0JB/EayVmi
5tWS+DOtdwkj4HQgVYHsoxB1pq8x4Qs=
=n1Xc
-----END PGP SIGNATURE-----

--02GFKa9PnYhmMObD--




Acknowledgement sent to Santiago Ruano Rincón <santiagorr@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#57696; Package grep. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 9 Sep 2022 18:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.