Subject: Re: grep: RE error 41: No remembered search string. (on Solaris)
To: Jeremy C. Reed <reed@reedmedia.net>
From: Eric Boutilier <Eric.Boutilier@Sun.COM>
List: tech-pkg
Date: 02/15/2005 16:19:34
On Tue, 15 Feb 2005, Jeremy C. Reed wrote:
> Looking at build logs from recent bulk builds posted to bulk builds list
> for SunOS and today doing my own builds on SunOS, I see:
>
>  grep: RE error 41: No remembered search string.
>
> GREP is /usr/xpg4/bin/grep
>
> Gavan brought this up in December on non tech list. Was there any
> consensus on what should be done now?
>
> Get rid of all -q and use /usr/bin/grep?

Maybe another option is to use Solaris' GNU grep:
/usr/sfw/bin/ggrep? It only exists on Solaris 9 and higher
though...

Having said this however, note that I've tried putting the
following in mk.conf:

GREP=/usr/sfw/bin/ggrep

but it doesn't seem to help.

Eric