On Thu Jun 14 10:37:21 EDT 2012, tlaro...@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

Reply via email to