[Logcheck-devel] Re: Bug#311216: logcheck: mails "egrep: Invalid content of \{\}"

Todd Troxell ttroxell at debian.org
Wed Jun 1 05:31:56 UTC 2005


On Wed, Jun 01, 2005 at 03:55:04AM +0100, Jamie L. Penman-Smithson wrote:
> On Mon, 2005-05-30 at 21:49 +0100, Jamie L. Penman-Smithson wrote:
> <snip>
> > On Mon, 2005-05-30 at 14:28 -0400, John A. Martin wrote:
> > > >>>>> "Jamie" == Jamie L Penman-Smithson
> > > >>>>> "Re: Bug#311216: logcheck: mails "egrep: Invalid content of \{\}""
> > > >>>>>  Mon, 30 May 2005 17:58:30 +0100
> > >     >> 
> > >     >> egrep: Invalid content of \{\}
> > >     >> `----
> > 
> > > Hmm... I have several boxen each doing the same with yesterday's
> > > upgrade.  It looks like the problem occurs on boxen with mixed
> > > stable/unstable but not on Sid boxen.
> > <snip>
> > > It looks like maybe grep-2.4.2-3 gives the problem while
> > > grep-2.5.1.ds1-4 does not.  That is not tested, just something that
> > > differs between the boxen showing the problem and one that doesn't.  I
> > > didn't notice before because the Sid box doesn't normally do logcheck.
> > 
> > I've tested this and your hypothesis is correct. In woody grep requires
> > that { and } characters are escaped, grep 2.5.1 doesn't care whether
> > they're escaped or not.
> 
> What d'you all think about adding a versioned dependency for grep, since
> it appears that grep >= 2.5.1-1 doesn't exhibit this issue.
> 
> Of course the alternative solution is to ensure that { and } are always
> escaped when used literally.

The versioned dependency is an easier solution, but maybe escaping would make
our ruleset more compatible.

How do other languages use these?  I know python does not require it.
I don't recall any that do...

Barring any related objections, I'll say version it.

-- 
[   Todd J. Troxell                                         ,''`.
      Student, Debian GNU/Linux Developer, SysAdmin, Geek  : :' :
      http://debian.org || http://rapidpacket.com/~xtat    `. `' 
                                                             `-     ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20050601/e15d133d/attachment.pgp 


More information about the Logcheck-devel mailing list