On 10/21/12 08:20 AM, Paul Eggert wrote:
On 10/19/2012 07:07 AM, Petr Sumbera wrote:
Is there some reason that Oracle has never added the -e option to grep?
Could you please file a bug report for that? It's been many years now
that -e has been in the POSIX standard, and there's no compatibility reason
why /usr/bin/grep -e should fail to work.
No reason I'm aware of. There is already filed bug for it:
7014264 /usr/bin/grep should have -e -f -x -E and -F options
Anyway, I pushed the following workaround. It assumes that you have
a more standard 'grep' floating around somewhere, which is pretty much
true on Solaris these days.
Thanks!
Yes. We have ggrep. Where on S10/S9 it's not in default path
(/usr/sfw/bin). And it seems that your new check is also happy with:
/usr/xpg4/bin/grep.
Btw. Can we update also tests/init.cfg to use $GREP version found during
configure? Or eventually remove this check..
Thanks,
Petr