Re: [PATCH] question mark is extended regex for non-GNU grep

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.libtool.patches
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 11/21/2014 05:11 AM, Michael Haubenwallner wrote:
> Accepting \? for at-most-once in basic regex is a GNU grep extension,
> not accepted by AIX grep for example.
> * tests/libtool.at: Need EGREP for ? operator, and ? without \ then.
> With EGREP, need one more \ for $.

Or, stick with GREP but use \{0,1\} instead of \?.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc (application/pgp-signature, 539 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg

iQEcBAEBCAAGBQJUb0bpAAoJEKeha0olJ0NqzjIH/3GEGol4sQuZPMlI6E4Dd0Vo
M1bmKV4/RzlvH8nf4V9++/mlA0hfz0hpDm8ftcO/ahevbuSPArmPfgsWCAqH73Y2
NdOz4CMl9xrLw1rC9KWfWKTYy3OwQ4ALUMPO6mMuT6NbD1TybooVrFiCp2GqZfPv
QpTLEsNXgOLbmbqvS9k2BM3jcnIw2rn2DVlDEcNiKdjvmc7G1x3zjyJxQPIbKaWx
xFDTPx4S9Sz+mTt6rBN2Dhk1SdJwQcHACtc6+rLqU9m479uQPvWMY9+QCcrMSd31
LDu2odQSl8ePwqSrsraqzlP/MmNJP42S2IsZQvfwDx9bd6jFZPKL9Wtay87Iti0=
=Jpp0
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.