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.

cnoc[spsy]> uname -a
SunOS cnoc 5.8 Generic_117350-20 sun4u sparc SUNW,Sun-Blade-1500
cnoc[spsy]> echo "some text here" | egrep -x "" ; echo $status
egrep: illegal option -- x
usage: egrep [ -bchilnsv ] [ -e exp ] [ -f file ] [ strings ] [ file ] ...
cnoc[spsy]>

No -x option.

--
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