[Bug bootstrap/53607] opt-functions.awk --> "awk: There is a regular expression error."
Daniel Richard G.
skunk@iSKUNK.ORG
Sun Jan 6 19:56:00 GMT 2013
On Sun, 2013 Jan 6 18:45+0100, Andreas Schwab wrote:
>
> > sub(".* " name "\\(", "", flags)
> > - if (flags ~ "^{")
> > + if (flags ~ "^\{")
> > {
> > - sub ("^{", "", flags)
> > + sub ("^\{", "", flags)
> > sub("}\\).*", "", flags)
>
> You need to escape the backslash inside a string.
Revised patch attached; awk behavior/output is same as before.
--Daniel
--
Daniel Richard G. || skunk@iSKUNK.ORG
My ASCII-art .sig got a bad case of Times New Roman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr53607-fix-2.patch
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130106/43a52561/attachment.bin>
More information about the Gcc-patches
mailing list