bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-grep] egrep and fgrep script assume path


From: Stepan Kasal
Subject: Re: [bug-grep] egrep and fgrep script assume path
Date: Sat, 29 Jan 2005 10:38:07 +0100
User-agent: Mutt/1.4.1i

Hi,

On Fri, Jan 28, 2005 at 09:42:27PM -0800, Paul Eggert wrote:
> How about the enclosed patch instead? [...]
> it resurrects the files egrepmat.c and fgrepmat.c

I think that is has one slight flaw: "egrep -F" shouldn't work.
So the {e,f}grep.mat.c should set matcher_hardwired=1, and
setmatcher would contain:

if (matcher_hardwired)
      error (2, 0, _("you cannot change the matcher of %s"), program_name);

Other from that, yes, installing full binaries is a sane solution.
Yet I want grep to include several ways of supporting egrep and fgrep,
which can be chosen at configure time.  Thus I'll merge your patch with the
one I posted yesterday.

But yes, I'm almost convinced that separate binaries should be the default.

Regards,
        Stepan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]