On Thu, Jun 14, 2012 at 09:44:25AM -0400, erik quanstrom wrote:
> > > nope, that's not right.  * starting a pattern escapes the whole string.
> > > this is unique to grep.

I guess this is surprising because with a POSIX grep(1), if I read the
description correctly:

1) If the * is the very character of a BRE (since POSIX has BRE and ERE)
it shall be treated as is---but the remaining of the expression is
interpreted.

2) In a ERE, if the * is the very first character, or follows |,
^ or ( this is undefined.

But I must admit that I was unaware, till Erik's message, of both the
Plan9 behavior, and even the "details" of the POSIX behavior...

-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                      http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

Reply via email to