* Testsuite regular expressions.
@ 2006-07-25 12:22 Andrew STUBBS
2006-07-25 15:39 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Andrew STUBBS @ 2006-07-25 12:22 UTC (permalink / raw)
To: GDB List
I've just noticed that there seems to be a 'problem' with many of the
testsuite regular expression patterns.
All through the testsuite, and particularly in help.exp, the tests
contain \. (an escaped period) in the match pattern. This would appear
to indicate that the pattern should match a period, not just any
character, but, in fact, the escape is processed by the TCL string
parser, and all the regular expression parser sees is the period. Other
characters, such as brackets, are 'escaped' with two slashes.
This is probably not a serious issue, but I do wonder if it perhaps
would be better to sort it out.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Testsuite regular expressions.
2006-07-25 12:22 Testsuite regular expressions Andrew STUBBS
@ 2006-07-25 15:39 ` Daniel Jacobowitz
2006-08-02 18:13 ` Jim Blandy
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-07-25 15:39 UTC (permalink / raw)
To: Andrew STUBBS; +Cc: GDB List
On Tue, Jul 25, 2006 at 01:09:02PM +0100, Andrew STUBBS wrote:
> This is probably not a serious issue, but I do wonder if it perhaps
> would be better to sort it out.
If you'd like to... I agree, but I don't think it's important enough to
spend much time on.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Testsuite regular expressions.
2006-07-25 15:39 ` Daniel Jacobowitz
@ 2006-08-02 18:13 ` Jim Blandy
0 siblings, 0 replies; 3+ messages in thread
From: Jim Blandy @ 2006-08-02 18:13 UTC (permalink / raw)
To: Andrew STUBBS; +Cc: GDB List
Daniel Jacobowitz <drow@false.org> writes:
> On Tue, Jul 25, 2006 at 01:09:02PM +0100, Andrew STUBBS wrote:
>> This is probably not a serious issue, but I do wonder if it perhaps
>> would be better to sort it out.
>
> If you'd like to... I agree, but I don't think it's important enough to
> spend much time on.
One thing worth noting: backslash isn't special within {curly quotes}.
$ tclsh
% puts {foo\.bar}
foo\.bar
% puts "foo\.bar"
foo.bar
%
But I see that help.exp is using it in "double quotes", so yeah, it's
wrong.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-02 18:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-25 12:22 Testsuite regular expressions Andrew STUBBS
2006-07-25 15:39 ` Daniel Jacobowitz
2006-08-02 18:13 ` Jim Blandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox