GNU bug report logs - #17080
[PATCH] egrep, fgrep: go back to shell scripts

Previous Next

Package: grep;

Reported by: Paul Eggert <eggert <at> CS.UCLA.EDU>

Date: Mon, 24 Mar 2014 00:26:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Paul Eggert <eggert <at> CS.UCLA.EDU>
Cc: 17080 <at> debbugs.gnu.org
Subject: Re: bug#17080: [PATCH] egrep, fgrep: go back to shell scripts
Date: Thu, 27 Mar 2014 19:53:47 +0200
> From: Paul Eggert <eggert <at> CS.UCLA.EDU>
> Date: Sun, 23 Mar 2014 17:21:35 -0700
> 
> Although egrep's and fgrep's switch from shell scripts to
> executables may have made sense in 2005, it complicated
> maintenance and recently has caused subtle performance bugs.
> Go back to the old way of doing things, as it's simpler and more
> easily separated from the mainstream implementation.  This should
> be good enough nowadays, as POSIX has withdrawn egrep/fgrep and
> portable applications should be using -E/-F anyway.

I urge you to reconsider: using shell scripts will be bad news for any
system that doesn't use a Unix shell.  Those whose muscle memory is
used to typing "fgrep" will have hard time relearning to type "grep -F" 
instead.




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

Previous Next


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