GNU bug report logs - #17156
[PATCH 0/5] Patches to apply

Previous Next

Package: grep;

Reported by: Paolo Bonzini <bonzini <at> gnu.org>

Date: Tue, 1 Apr 2014 09:19:01 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #40 received at 17156 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Paolo Bonzini <bonzini <at> gnu.org>, 17156 <at> debbugs.gnu.org
Cc: meyering <at> fb.com
Subject: Re: bug#17156: [PATCH 2/5] Revert conversion to shell scripts
Date: Sat, 05 Apr 2014 15:57:27 -0700
Paolo Bonzini wrote:
> I'm not sure how this is not satisfied by the current code though.

I assume "current code" refers to the code that had egrep and fgrep 
executables (not shell scripts), i.e., commit d25bebd (2005-11-09) 
through commit 0995fc1 (2014-03-23).

Here's an example of why that approach made maintenance tricky.  When 
Norihiro changed fgrep to use the grep matcher (see Bug#16823), his 
patch would have broken fgrep -i due to code in main.c that did a STREQ 
(matcher, "fgrep") to see whether fixed matching was in effect -- this 
was incorrect when the executable was 'fgrep'.  I vaguely recall some 
other subtle bugs in the area and it was enough for me to throw up my 
hands and say "let's go back to the old way of doing things -- that's 
easier to maintain and more reliable".

If there's a porting problem with the new (i.e., the pre-2005) approach, 
there should be a way to fix the problem without having to cause 
maintenance hassles with grep proper.




This bug report was last modified 11 years and 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.