This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Testsuite regular expressions.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]