fix ^* at the start of a complete BRE
authorSzabolcs Nagy <nsz@port70.net>
Mon, 29 Feb 2016 16:36:25 +0000 (16:36 +0000)
committerRich Felker <dalias@aerifal.cx>
Wed, 2 Mar 2016 05:47:22 +0000 (00:47 -0500)
commit29b13575376509bb21539711f30c1deaf0823033
treea562ad6c465f6f33d0cb534d6a80a5e85bd681b3
parent39ea71fb8afddda879a1999f2a203dfdaf57a639
fix ^* at the start of a complete BRE

This is a workaround to treat * as literal * at the start of a BRE.

Ideally ^ would be treated as an anchor at the start of any BRE
subexpression and similarly $ would be an anchor at the end of any
subexpression.  This is not required by the standard and hard to do
with the current code, but it's the existing practice.  If it is
changed, * should be treated as literal after such anchor as well.
src/regex/regcomp.c