]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(m4_re_escape): Escape ?, ^, \, $ too.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Feb 2005 07:32:15 +0000 (07:32 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Feb 2005 07:32:15 +0000 (07:32 +0000)
lib/m4sugar/m4sugar.m4

index 1e828e20c9cea430aad65d752fa0b635a1303879..741a333f2e05c15a1dbbf55d4f4ded4b66ff8668 100644 (file)
@@ -1318,10 +1318,10 @@ m4_defn([m4_cr_digits])dnl
 
 # m4_re_escape(STRING)
 # --------------------
-# Escape BRE active characters in STRING.
+# Escape RE active characters in STRING.
 m4_define([m4_re_escape],
 [m4_bpatsubst([$1],
-             [[][+*.]], [\\\&])])
+             [[][*+.?\^$]], [\\\&])])
 
 
 # m4_re_string