Mercurial > hg > octave-lojdl > gnulib-hg
changeset 3256:8340ff276cbf
Use proper quoting so brackets appear in the test program.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Wed, 16 May 2001 07:33:22 +0000 |
parents | f75846b7793b |
children | f296d838704c |
files | m4/regex.m4 |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/regex.m4 +++ b/m4/regex.m4 @@ -30,9 +30,10 @@ 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);