diff options
author | Jim Meyering <jim@meyering.net> | 2001-06-24 20:01:11 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-06-24 20:01:11 +0000 |
commit | 917646ccb0b8d7ae973f8c0108d20f3de82c0c7d (patch) | |
tree | 4d796f7fd8d2da35a920a02eb9dfc224725c7b31 | |
parent | 30eb0e4ed0a05e93ba20b6d400140f73c30a296f (diff) | |
download | coreutils-917646ccb0b8d7ae973f8c0108d20f3de82c0c7d.tar.xz |
(jm_INCLUDED_REGEX): Use a quadrigraph to represent an
unmatched right bracket, rather than an extra, falsely-matching
quote in a comment. Patch by Akim Demaille.
-rw-r--r-- | m4/regex.m4 | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/m4/regex.m4 b/m4/regex.m4 index a79f03bcd..0eb69fc74 100644 --- a/m4/regex.m4 +++ b/m4/regex.m4 @@ -1,4 +1,4 @@ -#serial 10 +#serial 11 dnl Initially derived from code in GNU grep. dnl Mostly written by Jim Meyering. @@ -30,10 +30,7 @@ AC_DEFUN(jm_INCLUDED_REGEX, const char *s; struct re_registers regs; re_set_syntax (RE_SYNTAX_POSIX_EGREP); - /* 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. */ + [s = re_compile_pattern ("a[[:@:>@:]]b\n", 9, ®ex);] /* This should fail with _Invalid character class name_ error. */ if (!s) exit (1); |