GNU bug report logs - #27813
grep bug

Previous Next

Package: grep;

Reported by: "Micah" <myspam <at> earthlink.net>

Date: Tue, 25 Jul 2017 00:18:02 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 27813 in the body.
You can then email your comments to 27813 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#27813; Package grep. (Tue, 25 Jul 2017 00:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Micah" <myspam <at> earthlink.net>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Tue, 25 Jul 2017 00:18:02 GMT) Full text and rfc822 format available.

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

From: "Micah" <myspam <at> earthlink.net>
To: bug-grep <at> gnu.org
Subject: grep bug
Date: Mon, 24 Jul 2017 17:12:20 -0700
File X contains a line with:

#else

Grepping:

case 1: 'grep -Ew -e "#else" X' returns "0":
#else

case 2: 'grep -E -e "\<#else\>" X' returns "1":

Same for -G

-F returns "0" for first case.






Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 25 Jul 2017 07:59:02 GMT) Full text and rfc822 format available.

Notification sent to "Micah" <myspam <at> earthlink.net>:
bug acknowledged by developer. (Tue, 25 Jul 2017 07:59:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Micah <myspam <at> earthlink.net>, 27813-done <at> debbugs.gnu.org
Subject: Re: bug#27813: grep bug
Date: Tue, 25 Jul 2017 00:58:39 -0700
[Message part 1 (text/plain, inline)]
Micah wrote:
> File X contains a line with:
> 
> #else
> 
> Grepping:
> 
> case 1: 'grep -Ew -e "#else" X' returns "0":
> #else
> 
> case 2: 'grep -E -e "\<#else\>" X' returns "1":

Although grep is operating as documented here, the documentation could be 
better. I installed the attached patch to try to clear things up. Thanks for 
reporting the problem.
[0001-doc-distinguish-w-from.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. (Tue, 22 Aug 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 240 days ago.

Previous Next


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