GNU bug report logs - #57613
grep man page tries to rewrite POSIX history

Previous Next

Package: grep;

Reported by: Geoff Clare <gwc <at> opengroup.org>

Date: Tue, 6 Sep 2022 12:29:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57613 in the body.
You can then email your comments to 57613 AT debbugs.gnu.org in the normal way.

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-grep <at> gnu.org:
bug#57613; Package grep. (Tue, 06 Sep 2022 12:29:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Geoff Clare <gwc <at> opengroup.org>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Tue, 06 Sep 2022 12:29:01 GMT) Full text and rfc822 format available.

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

From: Geoff Clare <gwc <at> opengroup.org>
To: bug-grep <at> gnu.org
Subject: grep man page tries to rewrite POSIX history
Date: Tue, 6 Sep 2022 13:28:37 +0100
The grep 3.8 man page at https://www.gnu.org/software/grep/manual/grep.html says, under "What happened to egrep and fgrep?":

egrep and fgrep were not standardized by POSIX

This is factually incorrect. They were included in POSIX.2-1992 but marked as obsolescent. When POSIX.2-1992 and POSIX.1-1996 were merged (along with the Single UNIX Specification) to form POSIX.1-2001, the obsolescent features from POSIX.2-1992 were removed.

Suggested fix - change:

egrep and fgrep were not standardized by POSIX and are no longer needed

to:

egrep and fgrep were marked obsolescent when they were standardized by POSIX in 1992 and were removed in the 2001 revision; they have long been deprecated by GNU.

(I have it second hand that the GNU deprecation occurred in 2007; you could give that date instead of saying "long" if you can confirm it.)





Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 06 Sep 2022 19:29:02 GMT) Full text and rfc822 format available.

Notification sent to Geoff Clare <gwc <at> opengroup.org>:
bug acknowledged by developer. (Tue, 06 Sep 2022 19:29:02 GMT) Full text and rfc822 format available.

Message #10 received at 57613-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Geoff Clare <gwc <at> opengroup.org>
Cc: 57613-done <at> debbugs.gnu.org
Subject: Re: bug#57613: grep man page tries to rewrite POSIX history
Date: Tue, 6 Sep 2022 14:28:12 -0500
[Message part 1 (text/plain, inline)]
On 9/6/22 07:28, Geoff Clare wrote:
> They were included in POSIX.2-1992 but marked as obsolescent.

Ouch, as I recall reading POSIX.2-1992 and seeing egrep and fgrep 
mentioned, but not as part of the standard. I guess I misread the 
standard. I am away from my printed copy and so cannot easily check this 
now.

I installed the attached which I hope clears this up.
[0001-Fix-obsolescence-doc-for-egrep-fgrep.patch (text/x-patch, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 05 Oct 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 201 days ago.

Previous Next


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