bug-grep
[Top][All Lists]
Advanced

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

Re: grep-2.5.1a egrep/fgrep PATH problem


From: Paul Eggert
Subject: Re: grep-2.5.1a egrep/fgrep PATH problem
Date: Fri, 24 Jun 2005 11:32:25 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Charles Levert <address@hidden> writes:

> How about this, then?
>
> We store the grep executable as
>
>    /usr/libexec/grep/2.5.2/i686-pc-linux-gnu/grep

Yes, I thought of that solution this morning as I drove into work.
(But you were faster.  :-)

Do we really need the version number?  Why not just install it as
$(libexecdir)/grep/grep, say?

Also, we should make a hard link from $(libexecdir)/grep/grep to
$(bindir)/grep, falling back on a copy if the ln fails.  This will
avoid one level of indirection in the common case of invoking plain
grep.

> This executable would no longer support
> invocation-name dependent behavior.

Yes, that's right.

> If symlinks are supported,

Yes, we could use them in that case, but hard links would be better if
they work.  If neither work we can simply copy the file.

> Both fgrep and egrep would always be wrappers.

Yes.

I like this idea.  If there's no objection, I'll write up a patch that
does this.




reply via email to

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