This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Fully anchor mi_gdb_test expected results.
On Thu, Aug 04, 2005 at 04:58:32PM -0400, Daniel Jacobowitz wrote:
> On Thu, Aug 04, 2005 at 04:47:56PM -0400, Bob Rossi wrote:
> > For instance, a change from
> > regsub -all {[]*+.|()^$\[]} $str {\\&} result
> > to
> > regsub -all {[]*+."|()^$\[]} $str {\\&} result
> >
> > escapes the quotes. Would a change like this be OK? I'll run the
> > testsuite.
>
> Note, the quotes should _not_ actually need to be escaped. They're not
> regex-active.
That's odd, for some reason, the testcase will only pass if the quotes
are escaped. I have the expression written by hand, and it's the only
way it'll work. I agree they are not a special char for regex's.
What do you think?
Is it because it's currently in a string when being matched? I think
that might be the case. Is there a work around for this?
Thanks,
Bob Rossi