freebsd-ports/shells/pdksh/files/patch-siglist.sh
Rodrigo Osorio 66735958b6 Fix ksh after 10.0 by using a posix compliant syntax for sort invocation.
Fix staging

PR:		ports/181438
Submitted by:	Chweigert Udo <Udo.Schweigert@siemens.com>
Reviewed by:	bapt (mentor)
2014-02-18 08:44:28 +00:00

11 lines
402 B
Bash

--- siglist.sh 2014-02-12 11:26:07.000000000 +0100
+++ siglist.sh 2014-02-12 11:26:22.000000000 +0100
@@ -23,7 +23,7 @@
{ QwErTy SIG\1 , "\1", "\2" },\
#endif/') > $in
$CPP $in > $out
-sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort +2n +0n |
+sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort -k3n -k1n |
sed 's/^[0-9]* //' |
awk 'BEGIN { last=0; nsigs=0; }
{