Otto Moerbeek wrote:
On Thu, 7 Sep 2006, AndrC)s wrote:

egrep shouldn't find anything, you are searching for the string "" in
"some text here", clearly, it isn't there.

Nah, an empty search pattern should match any line, as defined by SU
and the man page. The only problem is if the -x option takes
precendence or not. SU does not say a word about that.

If anybody has access to a Solaris machine, I like to know what the
test does there.

But the other grep in the Solaris says:

cnoc[spsy]> echo "some text here" | /usr/xpg4/bin/egrep -x ""; echo $status

cnoc[spsy]>

So nothing.

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)

Reply via email to