bug#68776: bug with escape characters in pattern

2024-01-28 Thread Paul Eggert

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.






bug#68776: bug with escape characters in pattern

2024-01-28 Thread Brendan Richardson
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
tt
n



KR
Brendan Richardson