GNU bug report logs - #66582
annoying, needless warning messages from [fe]grep

Previous Next

Package: grep;

Reported by: Noah Friedman <noah <at> splode.com>

Date: Tue, 17 Oct 2023 00:46:02 UTC

Severity: normal

Merged with 57604, 58502, 60257

To reply to this bug, email your comments to 66582 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#66582; Package coreutils. (Tue, 17 Oct 2023 00:46:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Noah Friedman <noah <at> splode.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 17 Oct 2023 00:46:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Noah Friedman <noah <at> splode.com>
To: bug-coreutils <at> gnu.org
Subject: annoying, needless warning messages from [fe]grep
Date: Mon, 16 Oct 2023 17:44:39 -0700 (PDT)
Just because a program is considered deprecated or obsolete by a standards
committee, is no reason to actually force that program out of use or
availablity.  And since when does GNU adhere strictly to POSIX anyway?

So my bug report is this: fgrep and egrep should not emit any warning on
stderr about being obsolescent unless the environment POSIXLY_CORRECT is
set.  If you want to be *really* pedantic, it shouldn't emit a warning
unless POSIXLY_CORRECT is set to the specific standards level (or above) in
which it was declared obsolete.  :-P

Because goddammit, there are 40 years worth of old programs out there that
are going to keep using egrep, and as a crusty 50+ year old myself, I'm not
planning to train my fingers out of using it either. 

Just let some things *be*.




Information forwarded to bug-coreutils <at> gnu.org:
bug#66582; Package coreutils. (Tue, 17 Oct 2023 03:30:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sam James <sam <at> gentoo.org>
To: Noah Friedman <noah <at> splode.com>
Cc: bug-coreutils <at> gnu.org, 66582 <at> debbugs.gnu.org
Subject: Re: bug#66582: annoying, needless warning messages from [fe]grep
Date: Tue, 17 Oct 2023 04:28:30 +0100
Noah Friedman <noah <at> splode.com> writes:

> Just because a program is considered deprecated or obsolete by a standards
> committee, is no reason to actually force that program out of use or
> availablity.  And since when does GNU adhere strictly to POSIX anyway?

grep is not from coreutils. As for the issue you discuss, it's being
brought up on the grep mailing lists already (and I agree with the whole
thing being silly).




Information forwarded to bug-coreutils <at> gnu.org:
bug#66582; Package coreutils. (Tue, 17 Oct 2023 03:30:03 GMT) Full text and rfc822 format available.

bug reassigned from package 'coreutils' to 'grep'. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 17 Oct 2023 04:14:02 GMT) Full text and rfc822 format available.

Merged 58502 60257 66582. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 17 Oct 2023 04:19:02 GMT) Full text and rfc822 format available.

Merged 57604 58502 60257 66582. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 17 Oct 2023 04:24:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-grep <at> gnu.org:
bug#66582; Package grep. (Tue, 17 Oct 2023 04:37:02 GMT) Full text and rfc822 format available.

Message #20 received at 66582 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Sam James <sam <at> gentoo.org>, Noah Friedman <noah <at> splode.com>
Cc: 66582 <at> debbugs.gnu.org
Subject: Re: bug#66582: annoying, needless warning messages from [fe]grep
Date: Mon, 16 Oct 2023 21:36:03 -0700
On 2023-10-16 20:28, Sam James wrote:

> grep is not from coreutils. As for the issue you discuss, it's being
> brought up on the grep mailing lists already
I moved this new bug report to the grep package and merged it with the 
grep mailing list discussions, which already pretty much eliminated 
using POSIXLY_CORRECT as that environment variable is not meant for this 
sort of thing. For details please see <https://bugs.gnu.org/66582> and 
follow the "Merged with" links.


> and as a crusty 50+ year old myself, I'm not
> planning to train my fingers out of using it either.

I may have you beat there. I had been using egrep since 1976. I visited 
Bell Labs in the 1970s and talked to some of the people who developed 
Unix. I have fond memories of using egrep in complicated and unexpected 
ways (and having it crash on me). Sigh. Those were the days....




Information forwarded to bug-grep <at> gnu.org:
bug#66582; Package grep. (Tue, 17 Oct 2023 07:14:01 GMT) Full text and rfc822 format available.

Message #23 received at 66582 <at> debbugs.gnu.org (full text, mbox):

From: arnold <at> skeeve.com
To: sam <at> gentoo.org, noah <at> splode.com, eggert <at> cs.ucla.edu
Cc: 66582 <at> debbugs.gnu.org
Subject: Re: bug#66582: annoying, needless warning messages from [fe]grep
Date: Tue, 17 Oct 2023 01:13:13 -0600
I too agree with the sentiment that it's wrong to obsolete
egrep and fgrep, and have said so.

I received this today from a gawk pre-tester who is unhappy
with the warnings generated by egrep use in the gawk test suite:

| I haven't time to find those battles with the grep people: I just
| fail to understand how they have the arrogance to think that they
| can drop two tools --- egrep and fgrep --- that are part of the
| standard Unix toolbox, and Unix textbooks, and on the fingertips
| of millions of people.  That is simply not acceptable, and I hope
| that they see the error of their ways.

I doubt that error reports and discussions about this will
decrease over time; egrep and fgrep have been existing practice
for too long.

Thanks,

Arnold




This bug report was last modified 211 days ago.

Previous Next


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