From: Craig Small Date: Mon, 11 Jun 2012 01:36:55 +0000 (+1000) Subject: sed uses proper BRE X-Git-Tag: v22.18~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0c122324ddaad51ed2ad3396422e6721b6658ff;p=psmisc sed uses proper BRE Apparently even though [0-9]+ works most of the time, its not proper BRE and doesn't work ALL of the time. Replacing this with [0-9][0-9]* makes everyone happy. Noticed by Rich from the busybox project and reported by John Spencer of the same project. --- diff --git a/ChangeLog b/ChangeLog index c12b2a8..2be2030 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ Changes in 22.18 ================ * Added AC_CANONICAL_TARGET for target_os Debian #673485 + * sed doesn't have [0-9]+ replace with [0-9][0-9]* Changes in 22.17 ================ diff --git a/src/Makefile.am b/src/Makefile.am index 5768294..fdf886b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -57,7 +57,7 @@ signames.h: signames.c Makefile export LC_ALL=C ; \ @CPP@ -dM $< |\ tr -s '\t ' ' ' | sort -n -k 3 | sed \ - 's:#define SIG\([A-Z]\+[0-9]*\) \([0-9]\+\) *\(\|/\*.*\)$$:{\ \2,"\1" },:p;d' | \ + 's:#define SIG\([A-Z][A-Z]*[0-9]*\) \([0-9][0-9]*\) *\(\|/\*.*\)$$:{\ \2,"\1" },:p;d' | \ grep -v '[0-9][0-9][0-9]' >signames.h || \ { rm -f signames.h; exit 1; } grep '^{ 1,"HUP" },$$' signames.h >/dev/null || \