GNU bug report logs -
#18863
grep -b bug
Previous Next
Reported by: 王琦 <wq_brilliant <at> 163.com>
Date: Tue, 28 Oct 2014 07:15:03 UTC
Severity: normal
Tags: notabug
Done: Eric Blake <eblake <at> redhat.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18863 in the body.
You can then email your comments to 18863 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-grep <at> gnu.org
:
bug#18863
; Package
grep
.
(Tue, 28 Oct 2014 07:15:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
王琦 <wq_brilliant <at> 163.com>
:
New bug report received and forwarded. Copy sent to
bug-grep <at> gnu.org
.
(Tue, 28 Oct 2014 07:15:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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. 发自邮箱大师
[Message part 2 (text/html, inline)]
Added tag(s) notabug.
Request was from
Eric Blake <eblake <at> redhat.com>
to
control <at> debbugs.gnu.org
.
(Tue, 28 Oct 2014 12:39:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Eric Blake <eblake <at> redhat.com>
:
You have taken responsibility.
(Tue, 28 Oct 2014 12:39:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
王琦 <wq_brilliant <at> 163.com>
:
bug acknowledged by developer.
(Tue, 28 Oct 2014 12:39:03 GMT)
Full text and
rfc822 format available.
Message #12 received at 18863-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 (application/pgp-signature, attachment)]
Information forwarded
to
bug-grep <at> gnu.org
:
bug#18863
; Package
grep
.
(Tue, 28 Oct 2014 12:46:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 18863 <at> debbugs.gnu.org (full text, mbox):
> 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
What is version of your grep? I trid your test case on CentOS 5.10, and
I got the same results as you. As the bug was fixed in grep 2.6, it
does not occur in grep 2.20 which is most recently version.
$ uname -a
Linux cent58 2.6.18-371.el5 #1 SMP Tue Oct 1 08:37:57 EDT 2013 i386 i386 i386 GNU/Linux
$ bash --version
GNU bash, version 3.2.25(1)-release (i386-redhat-linux-gnu)
........
$ cat /etc/redhat-release
CentOS release 5.10 (Final)
$ echo gnu is not unix | env LC_ALL=C /bin/grep -b -o "not"
0:not
$ env LC_ALL=C /bin/grep --version
grep (GNU grep) 2.5.1
........
$ echo gnu is not unix | env LC_ALL=C grep -b -o "not"
7:not
$ env LC_ALL=C grep --version
grep (GNU grep) 2.20
........
Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 26 Nov 2014 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 287 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.