summaryrefslogtreecommitdiff
path: root/gnulib-tool
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-06-03 17:52:19 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-06-03 18:09:38 -0700
commit762bd0aa660b0c1c02597e0d2e5c5fbf9bab1b91 (patch)
tree3347e5cd0fd53109bd8ff5ae0a5c659a18de89e9 /gnulib-tool
parent1ba2b66ea45f9bc43cdc0f6f93efa59157d2b2ba (diff)
downloadgnulib-762bd0aa660b0c1c02597e0d2e5c5fbf9bab1b91.tar.gz
regex-quote: \] -> ] in EREs and BREs
* 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.
Diffstat (limited to 'gnulib-tool')
-rwxr-xr-xgnulib-tool14
1 files changed, 7 insertions, 7 deletions
diff --git a/gnulib-tool b/gnulib-tool
index e420b321d2..5993143f3c 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -3178,8 +3178,8 @@ func_modules_transitive_closure ()
sed_extract_condition1='/^ *'"$escaped_dep"' *$/{
s/^.*$/true/p
}'
- sed_extract_condition2='/^ *'"$escaped_dep"' *\[.*\] *$/{
- s/^ *'"$escaped_dep"' *\[\(.*\)\] *$/\1/p
+ sed_extract_condition2='/^ *'"$escaped_dep"' *\[.*] *$/{
+ s/^ *'"$escaped_dep"' *\[\(.*\)] *$/\1/p
}'
condition=`func_get_dependencies $module | sed -n -e "$sed_extract_condition1" -e "$sed_extract_condition2"`
if test "$condition" = true; then
@@ -4637,7 +4637,7 @@ func_emit_autoconf_snippet ()
fi
} \
| { if $disable_gettext; then
- sed -e 's/AM_GNU_GETTEXT(\[external\])/dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac./'
+ sed -e 's/AM_GNU_GETTEXT(\[external])/dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac./'
else
# Don't indent AM_GNU_GETTEXT_VERSION line, as that confuses
# autopoint through at least GNU gettext version 0.18.2.
@@ -5033,12 +5033,12 @@ func_import ()
s,#.*$,,
s,^dnl .*$,,
s, dnl .*$,,
- /AC_DEFUN(\['"${cached_macro_prefix}"'_FILE_LIST\], \[/ {
+ /AC_DEFUN(\['"${cached_macro_prefix}"'_FILE_LIST], \[/ {
s,^.*$,cached_files=",p
n
ta
:a
- s,^\]).*$,",
+ s,^]).*$,",
tb
s,["$`\\],,g
p
@@ -6694,7 +6694,7 @@ func_create_testdir ()
esac
fi
done \
- | sed -e '/^$/d;' -e 's/AC_REQUIRE(\[\([^()]*\)\])/\1/'
+ | sed -e '/^$/d;' -e 's/AC_REQUIRE(\[\([^()]*\)])/\1/'
if test "$libtool" = true; then
echo "LT_INIT([win32-dll])"
echo "LT_LANG([C++])"
@@ -6806,7 +6806,7 @@ func_create_testdir ()
func_get_autoconf_early_snippet "$module"
fi
done \
- | sed -e '/^$/d;' -e 's/AC_REQUIRE(\[\([^()]*\)\])/\1/'
+ | sed -e '/^$/d;' -e 's/AC_REQUIRE(\[\([^()]*\)])/\1/'
if test "$libtool" = true; then
echo "LT_INIT([win32-dll])"
echo "LT_LANG([C++])"