GNU bug report logs -
#24134
problem with fgrep - only matches if I leave off the last character of the line
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24134 in the body.
You can then email your comments to 24134 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#24134
; Package
grep
.
(Tue, 02 Aug 2016 15:22:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
SZIGETVÁRI János <jszigetvari <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-grep <at> gnu.org
.
(Tue, 02 Aug 2016 15:22:02 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)]
Dear Developer Team,
I have encountered a problem related to fgrep, while I was trying to search
back and forth in a file filled with a number of log messages.
I have managed to narrow down the input file to a few lines, and also wrote
a reproduction guide for it.
I have checked it with a few different grep versions, but not all seemed to
be affected.
Grep 2.6.3 (CentOS 6) and 2.16 (Ubuntu 14.04) were, and 2.25 (Unbuntu
16.04) wasn't.
The problem basically was, that I was fgrepping for messages in syslog-ng
debug logs, and I was looking for matches that matched the log lines, that
were sent to syslog-ng (ie. messages about incoming log messages), and
there were a few messages, where there was no match for the whole message,
but if I removed the last character of the string I was grepping for, then
it did return a match.
The match also showed the character I removed previously, so it was unclear
why there was no match with the last character, and why there was without...
I tried to look for already closed bugs that looked similar, but I did not
manage to find anything similar.
Thanks for your help!
Best Regards,
János Szigetvári
--
Janos SZIGETVARI
RHCE, License no. 150-053-692
<https://www.redhat.com/rhtapps/verify/?certId=150-053-692>
E-mail: jszigetvari <at> gmail.com
Phone: +36209440412 (Hungary)
__ <at> __˚V˚
Make the switch to open (source) applications, protocols, formats now:
- windows -> Linux, iexplore -> Firefox, msoffice -> LibreOffice
- msn -> jabber protocol (Pidgin, Google Talk)
- mp3 -> ogg, wmv -> ogg, jpg -> png, doc/xls/ppt -> odt/ods/odp
[Message part 2 (text/html, inline)]
[reproduction-guide.txt (text/plain, attachment)]
[reproduction-sample.txt (text/plain, attachment)]
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Tue, 02 Aug 2016 16:55:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
SZIGETVÁRI János <jszigetvari <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 02 Aug 2016 16:55:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 24134-done <at> debbugs.gnu.org (full text, mbox):
SZIGETVÁRI János wrote:
> I tried to look for already closed bugs that looked similar, but I did not
> manage to find anything similar.
Thanks for the bug report. We have fixed several bugs with fgrep since grep 2.16
came out. For what it's worth, I could not reproduce the bug with grep 2.20
(RHEL 6.8) either. Since the bug does not appear to occur with recent grep
versions, I'm inclined to close the bug report.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 31 Aug 2016 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 355 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.