Subject: bug#68776: closed (Re: bug#68776: bug with escape characters in pattern)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 29 Jan 2024 02:36:02 +0000

Your bug report

#68776: bug with escape characters in pattern

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
68776: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68776
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#68776: bug with escape characters in pattern
From: Paul Eggert <[email-masked]>
To: Brendan Richardson <[email-masked]>
Cc: [email-masked]
Date: Sun, 28 Jan 2024 18:35:35 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

On 2024-01-27 16:00, Brendan Richardson wrote:
> If you use input
> egrep "[^\\n\\t]" file
> 
> and the file contains a line with only n or t on it, those lines are also

This is the correct behavior. The command you mention is equivalent to

grep -E '[^nt\]' file

and this outputs all lines containing some character other than 'n', 
't', or '\'. A line containing only n or t should not be output.

Subject: bug with escape characters in pattern
From: Brendan Richardson <[email-masked]>
To: [email-masked]
Date: Sat, 27 Jan 2024 19:00:37 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

If you use input
egrep "[^\\n\\t]" file

and the file contains a line with only n or t on it, those lines are also
excluded
file
normal lines
tttttt
nnnnn

KR
Brendan Richardson