GNU bug report logs - #60257
please fix warnings from egrep and fgrep

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: Thomas Wolff <towo@HIDDEN>; merged with #57604, #58502, #66582; dated Thu, 22 Dec 2022 16:35:02 UTC; Maintainer for grep is bug-grep@HIDDEN.
Merged 57604 58502 60257 66582. Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 58502 60257 66582. Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 22 Dec 2022 19:35:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 22 14:35:28 2022
Received: from localhost ([127.0.0.1]:36244 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p8RLj-0004sz-H4
	for submit <at> debbugs.gnu.org; Thu, 22 Dec 2022 14:35:27 -0500
Received: from lists.gnu.org ([209.51.188.17]:39774)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bruce.dubbs@HIDDEN>) id 1p8RLh-0004st-8H
 for submit <at> debbugs.gnu.org; Thu, 22 Dec 2022 14:35:25 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bruce.dubbs@HIDDEN>)
 id 1p8RLg-0002OV-Rx
 for bug-grep@HIDDEN; Thu, 22 Dec 2022 14:35:24 -0500
Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <bruce.dubbs@HIDDEN>)
 id 1p8RLf-0000uX-8F
 for bug-grep@HIDDEN; Thu, 22 Dec 2022 14:35:24 -0500
Received: by mail-oi1-x22a.google.com with SMTP id v82so2798564oib.4
 for <bug-grep@HIDDEN>; Thu, 22 Dec 2022 11:35:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=Qqn7DRof6lNM7xZx7xn/jnM0cMDA+KuR8HGkxMwprpk=;
 b=PVwyHhIZJ8KeZ9WmZY/oUuvWSZVebh3+DWbnPdJubVspaWBuNnrOavb24P+GYOHYlA
 KQVQtYDe7SAvvzDko9Q7Rt/70Q0TyDtIqX0/3IEA2bGaupQnMubKcRUbtmLlraDXpvvP
 MqRSxFctHF9tft0yJXt1WA3r7HFORlhlMyvhfoSas8wgqqRZEtt06apHjNTv2zn2Wx0J
 DBHu0a/W+CgnpbhgssKA52lQ73u3kcFAXKRfHnFxfJamD1JV4vVkeu9bHD3wz4ErvXbv
 1mHeX09tO6zTMDHQKRIcJxPrMIBYXvel0NKgfspDYfOWuGx8izDHhlXKmOrRDZ6gVFcC
 ARzw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=Qqn7DRof6lNM7xZx7xn/jnM0cMDA+KuR8HGkxMwprpk=;
 b=bPUjJrvNTncdO7yylnXGfDIvIXc8vMAdVT5hMn5Ka3I/eFhvSnub2V0UN1DcuSRqEa
 Lsn1Q4b05id1LRF6572+tlb9EXvRn9Mb9lEcZbSGm+MD8ewSoAU+reK/B+JF/qhDfb1E
 DQHeEaebJ4/6ikFsB0HdeDU2oCqG6GfWiJdCeIBLA0fxfpCRgScnjIYXgG05XEy+o+nW
 KYs+Kleq4wzPxhbSvCPchdO3WW2uTeB30ppzMoYI3Qt1fbZvHWrUENxggWwRjkinaPRc
 qidOlV1zggVpoN3T1c3LUTp8awMnJdIF6oZZ2pEtgiV/iOQePleTEcSR3/GmX65h40bW
 6hGQ==
X-Gm-Message-State: AFqh2kpqhe2rO8FAvW6wcLclrLNZcNpfYACzaI8lW+g42qIuiy7EHXYw
 HH15FZZkKLk+sWeSmr5y4h6P7p5blnE=
X-Google-Smtp-Source: AMrXdXuVEQpHJldJlqWA8rNRLUUzc5qcNlEJ6n7GGHHrNwxUdphRO8e619NLyOJqZilFmT4Mep419Q==
X-Received: by 2002:a05:6808:4082:b0:360:e80e:26a9 with SMTP id
 db2-20020a056808408200b00360e80e26a9mr2830046oib.12.1671737721302; 
 Thu, 22 Dec 2022 11:35:21 -0800 (PST)
Received: from [192.168.0.92] (cpe-70-94-157-206.satx.res.rr.com.
 [70.94.157.206]) by smtp.gmail.com with ESMTPSA id
 17-20020a544191000000b0035ba52d0efasm654499oiy.52.2022.12.22.11.35.20
 for <bug-grep@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 22 Dec 2022 11:35:20 -0800 (PST)
Message-ID: <5fb80351-5b7f-a2d5-e545-cb2d2c74e702@HIDDEN>
Date: Thu, 22 Dec 2022 13:35:19 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.4.0
Subject: Re: bug#60257: please fix warnings from egrep and fgrep
Content-Language: en-US
To: bug-grep@HIDDEN
References: <664a3e21-7738-96d1-719e-fbcedcb71155@HIDDEN>
From: Bruce Dubbs <bruce.dubbs@HIDDEN>
In-Reply-To: <664a3e21-7738-96d1-719e-fbcedcb71155@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=2607:f8b0:4864:20::22a;
 envelope-from=bruce.dubbs@HIDDEN; helo=mail-oi1-x22a.google.com
X-Spam_score_int: -31
X-Spam_score: -3.2
X-Spam_bar: ---
X-Spam_report: (-3.2 / 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, FREEMAIL_FROM=0.001,
 NICE_REPLY_A=-1.148, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.5 (--)
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: -3.5 (---)

On 12/22/22 09:16, Thomas Wolff wrote:
> These tools spill out warnings that are irritating almost everyone, moreover, they 
> are threatening to be removed.
> There was some discussion about this earlier this year, but with no consolidated 
> outcome, so I'd like to raise the issue again.
> Some weird and wrong arguments were presented; first, many GNU tools do have POSIX 
> extensions, including grep.
> Second and particularly:
>> egrep and fgrep were not entirely portable even before POSIX deprecated them in 2001
> grep -E and grep -F were not portable either! There are legacy systems which had 
> egrep and fgrep but did not have grep options -E and -F.
> So all this achieves is really to annoy thousands of people and to waste time of 
> hundreds of package maintainers.
> Please have mercy with the community. Give us the comfort of not being bothered when 
> using egrep and fgrep in the future, and if it is as a Christmas present.
> Thanks
> Thomas

If building from source, workaround with:

   sed -i "s/echo/#echo/" src/egrep.sh

before configure.

If not use:
   sed -i "s/echo/#echo/" /usr/bin/[ef]grep

   -- Bruce Dubbs
      linuxfromscratch.org




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

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


Received: (at submit) by debbugs.gnu.org; 22 Dec 2022 16:34:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 22 11:34:24 2022
Received: from localhost ([127.0.0.1]:35958 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p8OWV-0000T0-Lx
	for submit <at> debbugs.gnu.org; Thu, 22 Dec 2022 11:34:23 -0500
Received: from lists.gnu.org ([209.51.188.17]:53250)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <towo@HIDDEN>) id 1p8OWS-0000Sn-SY
 for submit <at> debbugs.gnu.org; Thu, 22 Dec 2022 11:34:21 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <towo@HIDDEN>) id 1p8NJN-0003zM-UT
 for bug-grep@HIDDEN; Thu, 22 Dec 2022 10:16:45 -0500
Received: from mout.kundenserver.de ([212.227.17.10])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <towo@HIDDEN>) id 1p8NJM-0007EL-CA
 for bug-grep@HIDDEN; Thu, 22 Dec 2022 10:16:45 -0500
Received: from [192.168.178.51] ([91.65.247.133]) by mrelayeu.kundenserver.de
 (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id
 1MNccf-1pXK8x3RT1-00P7PV for <bug-grep@HIDDEN>; Thu, 22 Dec 2022 16:16:40
 +0100
Message-ID: <664a3e21-7738-96d1-719e-fbcedcb71155@HIDDEN>
Date: Thu, 22 Dec 2022 16:16:36 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.6.0
From: Thomas Wolff <towo@HIDDEN>
To: bug-grep@HIDDEN
Subject: please fix warnings from egrep and fgrep
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:r2P8EllRUZaNC4yytytc9AGkWho3/mM3HrCXGLaqWAQ5s5FJCqV
 JP+2p9F4vEOhoVkMx4UOXmOamTwAE8nW4DAnuQWp2dME7mi7Upz5xlLVVqaMY9CAf0njCTM
 GbUJE26jTTsLr4JVaUfi6lJyXb85pyxHH/8PcfutsAQBOpVA/ITazT5XeqvKwr9GPZ+l6qG
 fZcRN32jB74Ni4AanBsKw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:6dMcdv0eOVQ=;1dPWkWuBC0dl9rN9pR5YkCZZtsX
 C4a/VUMQx34u3J4KK7rEecSH/Su3lhZtBv3v7MlPakLXopYo/PH9iTpNxdSZtdbUQVGzfbH+4
 /tJLRVBJn0+pbBJ9wA76jKqYtazW8djq05MdV5oAVe2wUHjdCvNjNLbsGQLvT6UV1kapHbstG
 3AUtEzZLNAtt6+Nun2z1XtMxk6UMlbWdHyNcVKxEwTYoUdzbEtkGRHX6gwIBWQtDXJp37KiHx
 kSqkYx7kXtBEyCz/x+CeVMvlgTpQaMKRnDAwjXrkQB2cbx9euLDdLxf6wwAUn3NokKvqtRZ3h
 Qqjr05y0PW8d9OU2mQtB3bwdEF+G9SIHIfiG1WCdUgYQFvFGs+/y+0mjCGRpryIky3mBxM+08
 8zAx6C8KRU+SPeFqiFifMoHycgbB6yi5jbr/OhbQlaLu00d8/dMxJSK+NWOTMeYx2Rhy4ANCR
 kT/GSd+2rmjf/rywoqdaKZPEwZwQUKZCZ680OOqAF8x3YPeleAupkfPkVJ+TFUDZLgQUdGYUc
 +SureLFJQp5LsdNE+41K8WOXzP1M2iFQDnL7CzCQWE4djtQKJvnBj6VZxBYmAwflSOPcKZqer
 cduaicx9mffnTtI8l9glvwsAZ3RRDiWqPLmbAeLsvkEVPMWV8VOKmJ1saXoTxuFH/IY2YutV0
 yGOFlsUkvyQZSZanX7mICizxGoD76jIuvDlARXM0Vg==
Received-SPF: none client-ip=212.227.17.10; envelope-from=towo@HIDDEN;
 helo=mout.kundenserver.de
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

These tools spill out warnings that are irritating almost everyone, 
moreover, they are threatening to be removed.
There was some discussion about this earlier this year, but with no 
consolidated outcome, so I'd like to raise the issue again.
Some weird and wrong arguments were presented; first, many GNU tools do 
have POSIX extensions, including grep.
Second and particularly:
> egrep and fgrep were not entirely portable even before POSIX 
> deprecated them in 2001
grep -E and grep -F were not portable either! There are legacy systems 
which had egrep and fgrep but did not have grep options -E and -F.
So all this achieves is really to annoy thousands of people and to waste 
time of hundreds of package maintainers.
Please have mercy with the community. Give us the comfort of not being 
bothered when using egrep and fgrep in the future, and if it is as a 
Christmas present.
Thanks
Thomas




Acknowledgement sent to Thomas Wolff <towo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#60257; 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: Tue, 17 Oct 2023 04:30:02 UTC

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