bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: GNU GREP - --program-prefix failure and gmake check failures


From: Paul Eggert
Subject: Re: GNU GREP - --program-prefix failure and gmake check failures
Date: Wed, 27 Mar 2002 18:11:12 -0800 (PST)

> From: =?iso-8859-1?q?Peter=20Bray?= <address@hidden>
> Date: Thu, 28 Mar 2002 12:45:56 +1100 (EST)
> 
>  --- Bernhard Rosenkraenzer <address@hidden> wrote: > On
> > All of this is fixed in 2.5.1.
> 
> NOT QUITE - there is an error in the shell scripts for egrep/fgrep
> Example
>   #!/bin/sh
>   exec grep -E ${1+"$@"}
>        ^^^^

Here's a patch for that.  This patch doesn't affect any messages, so
it won't affect any of the translations being done for grep.  This
patch is taken from Albert Chin's latest message on this and other subjects
<http://mail.gnu.org/pipermail/bug-gnu-utils/2002-March/009950.html>
Bernhard, perhaps you should look at the other parts of Albert's patch?
They might be useful too, and they don't affect translations either.


2002-03-27  Paul Eggert  <address@hidden>

        * src/Makefile.am (egrep, fgrep): Apply $(transform) to grep,
        and prepend $(bindir).  This is taken from a patch by Albert
        Chin.

--- src/Makefile.am.bak 2002-03-26 07:49:46.000000000 -0800
+++ src/Makefile.am     2002-03-27 17:59:14.964337004 -0800
@@ -20,11 +20,11 @@ EXTRA_DIST = \
 
 egrep:
        echo '#!/bin/sh' >$@
-       echo 'exec grep -E $${1+"$$@"}' >>$@
+       echo 'exec $(bindir)/'`echo grep|sed '$(transform)'`' -E $${1+"$$@"}' 
>>$@
        chmod a+x $@
 
 fgrep:
        echo '#!/bin/sh' >$@
-       echo 'exec grep -F $${1+"$$@"}' >>$@
+       echo 'exec $(bindir)/'`echo grep|sed '$(transform)'`' -F $${1+"$$@"}' 
>>$@
        chmod a+x $@
 



reply via email to

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