On 01/04/2011 08:45 AM, Fernando Basso wrote:
> I'm Fernando Basso from Brazil, and I run Arch Linux.
>
> $ grep --version
> grep (GNU grep) 2.7
>
> man help says:
>
> {,m} The preceding item is matched at most m times.
POSIX only requires:
When a BRE matching a single character, a subexpression, or a
back-reference is followed by an interval expression of the format
"\{m\}", "\{m,\}", or "\{m,n\}", together
so {,m} might be useful as shorthand for {0,m}, but is certainly not a
required repetition form. And given that it is currently rejected, you
are correct that the documentation is buggy (or that we should add
support for the shorthand as yet another GNU extension).
--
Eric Blake [email protected] +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
