bug-grep
[Top][All Lists]
Advanced

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

bug#68776: bug with escape characters in pattern


From: Paul Eggert
Subject: bug#68776: bug with escape characters in pattern
Date: Sun, 28 Jan 2024 18:35:35 -0800
User-agent: Mozilla Thunderbird

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.





reply via email to

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