|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#24134: closed (problem with fgrep - only matches if I leave off the last character of the line) |
Date: | Tue, 02 Aug 2016 16:55:02 +0000 |
Your message dated Tue, 2 Aug 2016 09:54:43 -0700 with message-id <address@hidden> and subject line Re: bug#24134: problem with fgrep - only matches if I leave off the last character of the line has caused the debbugs.gnu.org bug report #24134, regarding problem with fgrep - only matches if I leave off the last character of the line to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 24134: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24134 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: problem with fgrep - only matches if I leave off the last character of the line Date: Tue, 2 Aug 2016 14:37:33 +0200 János SzigetváriBest Regards,Thanks for your help!I tried to look for already closed bugs that looked similar, but I did not manage to find anything similar.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...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.Grep 2.6.3 (CentOS 6) and 2.16 (Ubuntu 14.04) were, and 2.25 (Unbuntu 16.04) wasn't.I have checked it with a few different grep versions, but not all seemed to be affected.I have managed to narrow down the input file to a few lines, and also wrote a reproduction guide for it.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.
--Janos SZIGETVARI
RHCE, License no. 150-053-692
E-mail: address@hidden
Phone: +36209440412 (Hungary)
address@hidden
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
reproduction-guide.txt
Description: Text document
reproduction-sample.txt
Description: Text document
--- End Message ---
--- Begin Message ---Subject: Re: bug#24134: problem with fgrep - only matches if I leave off the last character of the line Date: Tue, 2 Aug 2016 09:54:43 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 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.
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |