[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Man page - mistaken instructions?
From: |
Eric Blake |
Subject: |
Re: Man page - mistaken instructions? |
Date: |
Tue, 04 Jan 2011 13:06:09 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
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 address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature