On 9/7/06, Otto Moerbeek <[EMAIL PROTECTED]> 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. > > -Otto
" The following option is supported for /usr/xpg4/bin/egrep only: -x Consider only input lines that use all characters in the line to match an entire fixed string or regular expression to be matching lines." $ alias egrep=/usr/xpg4/bin/egrep $ echo "some text here" | egrep -x "" ; echo $status $ SunOS 5.9. ddp