summaryrefslogtreecommitdiff
path: root/top
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 /top
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 'top')
-rw-r--r--top/maint.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/top/maint.mk b/top/maint.mk
index b9f483bf97..2740c11d36 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -823,7 +823,7 @@ sc_trailing_blank:
# Match lines like the following, but where there is only one space
# between the options and the description:
# -D, --all-repeated[=delimit-method] print all duplicate lines\n
-longopt_re = --[a-z][0-9A-Za-z-]*(\[?=[0-9A-Za-z-]*\]?)?
+longopt_re = --[a-z][0-9A-Za-z-]*(\[?=[0-9A-Za-z-]*]?)?
sc_two_space_separator_in_usage:
@prohibit='^ *(-[A-Za-z],)? $(longopt_re) [^ ].*\\$$' \
halt='help2man requires at least two spaces between an option and its description'\
@@ -1390,7 +1390,7 @@ gpg_key_ID ?= \
$$(cd $(srcdir) \
&& git cat-file tag v$(VERSION) \
| $(gpgv) --status-fd 1 --keyring /dev/null - - 2>/dev/null \
- | $(AWK) '/^\[GNUPG:\] ERRSIG / {print $$3; exit}')
+ | $(AWK) '/^\[GNUPG:] ERRSIG / {print $$3; exit}')
gpg_key_email ?= \
$$(gpg --list-key --with-colons $(gpg_key_ID) 2>/dev/null \
| $(AWK) -F: '/^uid/ {print $$10; exit}' \
@@ -1743,8 +1743,8 @@ _gl_TS_unmarked_extern_vars ?=
# a macro like this: GLOBAL(type, var_name, initializer), then you
# can override this definition to automatically extract those names:
# export _gl_TS_var_match = \
-# /^(?:$(_gl_TS_extern)) .*?\**(\w+)(\[.*?\])?;/ || /\bGLOBAL\(.*?,\s*(.*?),/
-_gl_TS_var_match ?= /^(?:$(_gl_TS_extern)) .*?(\w+)(\[.*?\])?;/
+# /^(?:$(_gl_TS_extern)) .*?\**(\w+)(\[.*?])?;/ || /\bGLOBAL\(.*?,\s*(.*?),/
+_gl_TS_var_match ?= /^(?:$(_gl_TS_extern)) .*?(\w+)(\[.*?])?;/
# The names of object files in (or relative to) $(_gl_TS_dir).
_gl_TS_obj_files ?= *.$(OBJEXT)