On Thu, 7 Sep 2006, 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.
For (k)sh, change $status into $? > > -Otto > > > > > On 9/7/06, Martin Marusak <[EMAIL PROTECTED]> wrote: > > > OpenBSD egrep finds nothing in any text: > > > --- > > > % echo "some text here" | egrep -x "" ; echo $status > > > some text here > > > 0 > > > --- > > > > > > GNU grep does not: > > > --- > > > % echo "some text here" | gegrep -x "" ; echo $status > > > 1 > > > --- > > > Isn't that a bug in OpenBSD egrep? > > > > > > M. > > > > > > > > > > > > -- > > AndrC)s Delfino