From: Paul Eggert Date: Wed, 14 Sep 2022 05:10:45 +0000 (-0500) Subject: Fix BRE typos in check-safety.sh X-Git-Tag: upstream/2.37~347 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05967faf0e3df6aad07f0b05e138e86f82363deb;p=platform%2Fupstream%2Fglibc.git Fix BRE typos in check-safety.sh * manual/check-safety.sh: Fix BRE portability typos. POSIX says \] produces undefined results. --- diff --git a/manual/check-safety.sh b/manual/check-safety.sh index 21ddb3b..25f9fb5 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