tag 18863 notabug thanks On 10/27/2014 01:49 AM, 王琦 wrote: > Hi, I found that "grep -b" doesn't work on my machine. the expected result > for below command is "7:not", but I got 0 $ echo gnu is not unix | grep -b -o > "not" 0:not Bash version 3.2.25 Linux version 2.6.18 Thanks. 发自邮箱大师
[your report was hard to read because you failed to use line wrapping] Thanks for the report. However, I cannot reproduce it on newer grep, and have to assume the error has either been fixed in the meantime. Therefore, I'm closing out this bug report, although you should feel free to make further comments or even reopen this if you can demonstrate that a problem still exists. $ grep --version | head -n1 grep (GNU grep) 2.18 $ echo gnu is not unix | grep -b -o not 7:not -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature