Subject: Re: buggy grep in Solaris 10 (break gnupg)
To: Gilles Dauphin <Gilles.Dauphin@enst.fr>
From: None <segv@netctl.net>
List: tech-pkg
Date: 04/12/2006 10:10:17
On Wed, 12 Apr 2006 10:35:57 +0200 (CEST)
Gilles Dauphin <Gilles.Dauphin@enst.fr> wrote:

> Hello,
> 
> It seems the solaris grep is buggy. I test the following:
> 
> [root@u2 100] echo hithere > conftest.txt
> [root@u2 101] /usr/pkg/bin/tar -cf - conftest.txt | /usr/xpg4/bin/grep -q
> ustar [root@u2 102] echo $?
> 1
> [root@u2 103]
> 
> But
> 
> [root@u2 103] /usr/pkg/bin/tar -cf - conftest.txt | /usr/sfw/bin/ggrep -q
> ustar [root@u2 104] echo $?
> 0
> [root@u2 105]
> 
> How to use /usr/sfw/bin/ggrep as a TOOL for pkgsrc.
> 
> Thanks 
> Gilles
> 

Because when you run 'tar' you don't get end of line chars in the output.
Try '-F' option with Solaris grep.