mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-05 15:22:12 -04:00
Use proper quoting so brackets appear in the test program.
This commit is contained in:
+3
-2
@@ -30,9 +30,10 @@ AC_DEFUN(jm_INCLUDED_REGEX,
|
||||
const char *s;
|
||||
struct re_registers regs;
|
||||
re_set_syntax (RE_SYNTAX_POSIX_EGREP);
|
||||
/* Add this third left square bracket, [, to balance the
|
||||
three right ones below. Otherwise autoconf-2.14 chokes. */
|
||||
/* These two brackets, `[[' and the one in the comment below serve
|
||||
to quote the brackets (unbalanced) in the following line. */
|
||||
s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
|
||||
/* This bracket `]' helps quote the unbalanced expression above. */
|
||||
/* This should fail with _Invalid character class name_ error. */
|
||||
if (!s)
|
||||
exit (1);
|
||||
|
||||
Reference in New Issue
Block a user