bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27813: grep bug


From: Paul Eggert
Subject: bug#27813: grep bug
Date: Tue, 25 Jul 2017 00:58:39 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

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.

Attachment: 0001-doc-distinguish-w-from.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]