mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 14:50:05 +00: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:
parent
2d7ed98add
commit
05967faf0e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user