Your message dated Mon, 25 Jul 2016 23:00:35 -0700
with message-id 
<ca+8g5kgdd3+k9guoz8rmn+cmttv_wuzdb_zttzgj3g-v4qp...@mail.gmail.com>
and subject line Re: bug#23965: egrep should report line number when failing to 
parse a file (with -f)
has caused the Debian Bug report #525214,
regarding egrep should report line number when failing to parse a file (with -f)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
525214: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525214
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grep
Version: 2.5.4-4
Severity: normal

egrep -f takes its input from a file. This functionality is often used
i.e. with logcheck, which works basically off a directory full of
files which contain regexes representing log messages to be either
ignored or pushed up - However, when something goes bad and one of
those lines is not parsable, grep won't help in debugging. As an
example, I got loads of log messages such as:

    From: Cron Daemon <[email protected]>
    To: [email protected]
    Date: Tue, 21 Apr 2009 23:02:02 -0500 (CDT)
    Subject: Cron <logcheck@lafa>    if [ -x /usr/sbin/logcheck ]; then nice 
-n10 /usr/sbin/logcheck; fi

    egrep: Unmatched [ or [^

Finding the file/line where I made this particular mistake was a
tedious job. Users deserve egrep to report the filename and line
number where this error happened.

Thanks,

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-vserver-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grep depends on:
ii  libc6                         2.9-7      GNU C Library: Shared libraries

grep recommends no packages.

Versions of packages grep suggests:
ii  libpcre3                      7.8-2      Perl 5 Compatible Regular Expressi

-- no debconf information



--- End Message ---
--- Begin Message ---
On Mon, Jul 25, 2016 at 11:56 AM, Santiago Ruano Rincón
<[email protected]> wrote:
> El 23/07/16 a las 09:31, Jim Meyering escribió:
>> On Wed, Jul 20, 2016 at 2:58 PM, Jim Meyering <[email protected]> wrote:
>> > On Wed, Jul 13, 2016 at 1:59 AM, Santiago Ruano Rincón
>> > <[email protected]> wrote:
>
> …
>
>> Here are two patches.
>> The first adds coreutils' perl-based test harness to grep.
>> The second improves those diagnostics and adds a test using the new harness:
>
> Thanks!
>
> I will include it in the next grep debian release.

Nice.
I've added a couple more tests and pushed as
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=f13c169e13aed279baa00d9ced9d93fe24775493

--- End Message ---

Reply via email to