From 762bd0aa660b0c1c02597e0d2e5c5fbf9bab1b91 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 3 Jun 2022 17:52:19 -0700 Subject: regex-quote: \] -> ] in EREs and BREs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build-aux/bootstrap: * build-aux/bootstrap.conf (gettext_external): * check-AC_LIBOBJ: * lib/regex-quote.c (bre_special, ere_special): * gnulib-tool (func_modules_transitive_closure) (func_emit_autoconf_snippet, func_import, func_create_testdir): * tests/test-regex-quote.c (test_bre, test_ere): * top/maint.mk (longopt_re, gpg_key_ID): Don’t use \] in BREs and EREs, as POSIX says the interpretation is undefined. --- build-aux/bootstrap.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build-aux/bootstrap.conf') diff --git a/build-aux/bootstrap.conf b/build-aux/bootstrap.conf index 16bb3d5e30..da8993ae90 100644 --- a/build-aux/bootstrap.conf +++ b/build-aux/bootstrap.conf @@ -38,7 +38,7 @@ XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\ gettext_external=0 grep '^[ ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null && gettext_external=1 -grep '^[ ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null && +grep '^[ ]*AM_GNU_GETTEXT(\[external]' configure.ac > /dev/null && gettext_external=1 if test $gettext_external = 1; then -- cgit v1.2.1