From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 14 Jun 2012 10:49:51 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: <20120614143602.GA1440@polynum.com> References: <84c3d5dd7667b66697f94c5e142bf831@coraid.com> <301f8dfa8383d61d620e4412292986f8@kw.quanstro.net> <20120614140047.GA1725@polynum.com> <20120614143602.GA1440@polynum.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] empty * Topicbox-Message-UUID: 9e926ba6-ead7-11e9-9d60-3106f5b1d025 On Thu Jun 14 10:37:21 EDT 2012, tlaronde@polynum.com wrote: > On Thu, Jun 14, 2012 at 04:13:12PM +0200, Gorka Guardiola wrote: > > Also this: > > > > cpu% echo hola | grep '*' > > grep: *: syntax error > > The plan9 regexp are mainly Extended Regular Expression. If the POSIX > description is taken, a leading '*' is a syntax error. I guess that the > leading '*' followed by some non empty pattern is a Plan9 way to get > "grep -F" ? > > > cpu% echo hola | grep '' > > grep: empty pattern > > From the POSIX description, an empty pattern is not allowed. '*' is not > an empty pattern. i'm sorry this just isn't correct. see the man page. plan 9 grep has no intentions of being posix. grep '*' can be seen as a literal escape plus the pattern of ''. this is an empty pattern, thus an error. - erik