9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: tlaronde@polynum.com
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] empty *
Date: Thu, 14 Jun 2012 16:00:47 +0200	[thread overview]
Message-ID: <20120614140047.GA1725@polynum.com> (raw)
In-Reply-To: <301f8dfa8383d61d620e4412292986f8@kw.quanstro.net>

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	other threads:[~2012-06-14 14:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CACm3i_g9m6sVaBvvydKYyBxwE=NGYmhmpM4Nko6gE5uUngSwXA@mail.gmail.c>
2012-06-14 13:33 ` erik quanstrom
2012-06-14 13:38   ` Gorka Guardiola
     [not found]   ` <CACm3i_hoeuq10w5=Ri+-nocm1Str2USwTBW1m5iuhSxdU3_pMA@mail.gmail.c>
2012-06-14 13:44     ` erik quanstrom
2012-06-14 14:00       ` tlaronde [this message]
2012-06-14 14:13         ` Gorka Guardiola
2012-06-14 14:36           ` tlaronde
2012-06-14 14:49             ` erik quanstrom
2012-06-14 15:08               ` tlaronde
     [not found]         ` <CACm3i_hRKnkDW6SgFQQ3B4zfr3UHim=-x_uA0iYYRzZz0W8Xag@mail.gmail.c>
2012-06-14 14:46           ` erik quanstrom
2012-06-14 14:50             ` Gorka Guardiola
2012-06-14 14:05       ` Lucio De Re
2012-06-14  8:28 Gorka Guardiola
2012-06-14  9:32 ` Peter A. Cejchan
2012-06-14  9:54   ` Gorka Guardiola
2012-06-14  9:42 ` Anthony Martin
2012-06-14 13:29   ` erik quanstrom
     [not found] ` <CAM6ozu51kzDLxB0KoT96udomrKyHWuHvwqSum6=aXmonpr8kXQ@mail.gmail.c>
2012-06-14 13:28   ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120614140047.GA1725@polynum.com \
    --to=tlaronde@polynum.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).