public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Fix BRE typos in check-safety.sh
@ 2022-09-14 5:12 Paul Eggert
0 siblings, 0 replies; only message in thread
From: Paul Eggert @ 2022-09-14 5:12 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=05967faf0e3df6aad07f0b05e138e86f82363deb
commit 05967faf0e3df6aad07f0b05e138e86f82363deb
Author: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed Sep 14 00:10:45 2022 -0500
Fix BRE typos in check-safety.sh
* manual/check-safety.sh: Fix BRE portability typos.
POSIX says \] produces undefined results.
Diff:
---
manual/check-safety.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/manual/check-safety.sh b/manual/check-safety.sh
index 21ddb3beb7..25f9fb5b11 100644
--- a/manual/check-safety.sh
+++ b/manual/check-safety.sh
@@ -109,15 +109,15 @@ success=false
# optional comment about exclusions is between []s at the end of the
# line.
grep -n '^@c \+[^@ ]\+\( dup\)\?'\
-'\( @\(mt\|a[sc]\)[^ ]*\)*\( \[.*\]\)\?$' "$@" |
+'\( @\(mt\|a[sc]\)[^ ]*\)*\( \[.*]\)\?$' "$@" |
grep -v ':@c *[^@{}]*\( @mt[^ {}]*\)*'\
-'\( @as[^ {}]*\)*\( @ac[^ {}]*\)*\( \[.*\]\)\?$' &&
+'\( @as[^ {}]*\)*\( @ac[^ {}]*\)*\( \[.*]\)\?$' &&
success=false
# Check that comments containing safety remarks do not contain
# duplicate remarks.
grep -n '^@c \+[^@ ]\+\( dup\)\?'\
-'\( @\(mt\|a[sc]\)[^ ]*\)*\( \[.*\]\)\?$' "$@" |
+'\( @\(mt\|a[sc]\)[^ ]*\)*\( \[.*]\)\?$' "$@" |
grep '[^:]\(@\(mt\|a[sc]\)[^ ]*\) \(.*[^:]\)\?\1\($\| \)' &&
success=false
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-14 5:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 5:12 [glibc] Fix BRE typos in check-safety.sh Paul Eggert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).