bug-grep
[Top][All Lists]
Advanced

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

bug#21989: grep search by ASCII code unsuccessful


From: Shivanshu Goyal
Subject: bug#21989: grep search by ASCII code unsuccessful
Date: Sun, 22 Nov 2015 21:24:05 -0800

Hi,

I think I found a bug which did not exist in version 2.14, but does seem to
exist in versions 2.16 and 2.22. I have not tested any other versions.

Say there is a file with the following contents:

address@hidden:tmp$ cat temp | xxd
0000000: 68e2 8093 680a                           h...h.

The following is the grep 2.14 command and output:

address@hidden:tmp$ cat temp | grep -P '\xe2\x80\x93'
h–h

The following is the grep 2.16/2.22 command and output:

address@hidden:tmp$ cat temp | grep -P '\xe2\x80\x93'
address@hidden:tmp$

Thanks,
Shivanshu Goyal
shivanshu.ca


reply via email to

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