[PATCH] fix running with newer versions of coreutils

Dmitry V. Levin ldv at altlinux.org
Wed Mar 26 22:45:02 UTC 2008


On Wed, Mar 26, 2008 at 06:36:05PM -0400, Mike Frysinger wrote:
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
>  signalent.sh  |    2 +-
>  syscallent.sh |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/signalent.sh b/signalent.sh
> index d0fac86..6f9aea6 100644
> --- a/signalent.sh
> +++ b/signalent.sh
> @@ -28,7 +28,7 @@
>  
>  cat $* |
>  	sed -n -e 's/\/\*.*\*\// /' -e 's/^#[ 	]*define[ 	][ 	]*SIG\([^_ 	]*\)[ 	][ 	]*\([0-9][0-9]*\)[ 	]*$/\1 \2/p' |
> -	sort +1n |
> +	sort -k2n |
>  	awk '
>  	BEGIN {
>  		tabs = "\t\t\t\t\t\t\t\t"
> diff --git a/syscallent.sh b/syscallent.sh
> index 2f08701..7cab850 100644
> --- a/syscallent.sh
> +++ b/syscallent.sh
> @@ -30,7 +30,7 @@ cat ${1+"$@"} |
>  	sed -n 's/^#[ 	]*define[ 	][ 	]*SYS_\([^ 	]*\)[ 	]*[^0-9]*\([0-9]*\).*$/\1 \2/p
>  s/^#[ 	]*define[ 	][ 	]*__NR_\([^ 	]*\)[ 	]*[^0-9]*\([0-9]*\).*$/\1 \2/p
>  s/^#[ ]*define[ ][ ]*__NR_\([^ ]*\)[ ]*[^0-9()]*(__NR_Linux + \([0-9]*\))$/\1 \2/p' |
> -	sort +1n | uniq |
> +	sort -k1n | uniq |
>  	awk '
>  	BEGIN {
>  		tabs = "\t\t\t\t\t\t\t\t"

Thank you.
While 1st hunk looks OK, I'm not sure about the 2nd.
Shouldn't it look like the 1st one?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20080327/7147f2d3/attachment.bin>


More information about the Strace-devel mailing list