mirror of
git://sourceware.org/git/glibc.git
synced 2026-11-14 07:12:13 +08:00
Fix BRE typos in check-safety.sh
* manual/check-safety.sh: Fix BRE portability typos. POSIX says \] produces undefined results.
This commit is contained in:
@@ -109,15 +109,15 @@ success=false
|
|||||||
# optional comment about exclusions is between []s at the end of the
|
# optional comment about exclusions is between []s at the end of the
|
||||||
# line.
|
# line.
|
||||||
grep -n '^@c \+[^@ ]\+\( dup\)\?'\
|
grep -n '^@c \+[^@ ]\+\( dup\)\?'\
|
||||||
'\( @\(mt\|a[sc]\)[^ ]*\)*\( \[.*\]\)\?$' "$@" |
|
'\( @\(mt\|a[sc]\)[^ ]*\)*\( \[.*]\)\?$' "$@" |
|
||||||
grep -v ':@c *[^@{}]*\( @mt[^ {}]*\)*'\
|
grep -v ':@c *[^@{}]*\( @mt[^ {}]*\)*'\
|
||||||
'\( @as[^ {}]*\)*\( @ac[^ {}]*\)*\( \[.*\]\)\?$' &&
|
'\( @as[^ {}]*\)*\( @ac[^ {}]*\)*\( \[.*]\)\?$' &&
|
||||||
success=false
|
success=false
|
||||||
|
|
||||||
# Check that comments containing safety remarks do not contain
|
# Check that comments containing safety remarks do not contain
|
||||||
# duplicate remarks.
|
# duplicate remarks.
|
||||||
grep -n '^@c \+[^@ ]\+\( dup\)\?'\
|
grep -n '^@c \+[^@ ]\+\( dup\)\?'\
|
||||||
'\( @\(mt\|a[sc]\)[^ ]*\)*\( \[.*\]\)\?$' "$@" |
|
'\( @\(mt\|a[sc]\)[^ ]*\)*\( \[.*]\)\?$' "$@" |
|
||||||
grep '[^:]\(@\(mt\|a[sc]\)[^ ]*\) \(.*[^:]\)\?\1\($\| \)' &&
|
grep '[^:]\(@\(mt\|a[sc]\)[^ ]*\) \(.*[^:]\)\?\1\($\| \)' &&
|
||||||
success=false
|
success=false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user