summaryrefslogtreecommitdiff
path: root/m4/regex.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-05-16 07:33:22 +0000
committerJim Meyering <jim@meyering.net>2001-05-16 07:33:22 +0000
commitcd470239ae338c80dff9586f00cffacf8c44ddef (patch)
treea1954d54fe6d9d5a30582260b19432407b979504 /m4/regex.m4
parent531822b16882fa9416b4caaa83e1c42f562b07c9 (diff)
downloadcoreutils-cd470239ae338c80dff9586f00cffacf8c44ddef.tar.xz
Use proper quoting so brackets appear in the test program.
Diffstat (limited to 'm4/regex.m4')
-rw-r--r--m4/regex.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/regex.m4 b/m4/regex.m4
index 66b39c3ae..f546dd7bc 100644
--- a/m4/regex.m4
+++ b/m4/regex.m4
@@ -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, &regex);
+ /* This bracket `]' helps quote the unbalanced expression above. */
/* This should fail with _Invalid character class name_ error. */
if (!s)
exit (1);