On Fri, Oct 13, 2000 at 05:51:22AM -0400, Rob Reid wrote:
> At 8:17 PM EDT on Oct. 11 Aaron Schrab brought me out of hibernation for this:
>
> > Or you could just make a minor modification to the grep pattern:
> > 
> >   ps -U $LOGNAME | grep 'r[e]almutt' > /dev/null
> > 
> > That way grep won't be able to match itself.
>  
> It works, but I don't understand why. Shouldn't 'r[e]almutt' just parse to
> "realmutt"?

Consider the difference between these:

,----
| davep@hagbard:~$ echo foo | grep fo[o]
| foo
| davep@hagbard:~$ echo fo[o] | grep fo[o]
| davep@hagbard:~$
`----

-- 
Take a look in Hagbard's World: | mutt.octet.filter - autoview octet-streams
http://www.hagbard.demon.co.uk/ | mutt.vcard.filter - autoview simple vcards
http://www.acemake.com/hagbard/ | muttrc2html       - muttrc -> HTML utility
Free software, including........| muttrc.sl         - Jed muttrc mode

Reply via email to