This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PING][PATCH] testsuite: Escape a loose '[' character inside a regexp.
- From: Doug Evans <dje at google dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Yao Qi <qiyaoltc at gmail dot com>, Martin Galvan <martin dot galvan at tallertechnologies dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Tue, 23 Jun 2015 12:13:01 -0500
- Subject: Re: [PING][PATCH] testsuite: Escape a loose '[' character inside a regexp.
- Authentication-results: sourceware.org; auth=none
- References: <1434775646-2625-1-git-send-email-martin dot galvan at tallertechnologies dot com> <86bng8rtva dot fsf at gmail dot com> <CADPb22TQonBn5rJrxyv-QL0OzgzXsH2-fLvkrnWBsAi5SDVk-A at mail dot gmail dot com> <CADPb22Q46z7y3_T37nQeAABP9yYQriC_MuZqoPf5b1Za4hVq+A at mail dot gmail dot com> <87zj3qqrt4 dot fsf at igel dot home>
On Tue, Jun 23, 2015 at 12:04 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Doug Evans <dje@google.com> writes:
>
>> Actually, this is arguably s.o.p. Bleah.
>> Otherwise \r\n inside {} won't get expanded as CR,LF.
>
> \r\n are also special for tcl regexps. So it doesn't matter whether
> they are expanded by the tcl parser or the regexp engine.
Sorry, yeah.
http://tcl.tk/man/tcl8.5/TclCmd/re_syntax.htm