]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix BRE typos in check-safety.sh
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 14 Sep 2022 05:10:45 +0000 (00:10 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 14 Sep 2022 05:12:20 +0000 (00:12 -0500)
* manual/check-safety.sh: Fix BRE portability typos.
POSIX says \] produces undefined results.

manual/check-safety.sh

index 21ddb3beb732bd67bb1de8e3ff73d29772e73662..25f9fb5b1136d9204a9d3af5768bb667bae2456c 100644 (file)
@@ -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