From 5acdedf619d79f8e297b1e96f5d5b160d6baf478 Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Sun, 16 May 2004 19:10:22 +0000 Subject: [PATCH] Rene Rebe: fixed pdksh for recent sort's: sort: open failed: +2n: No such file or directory [2004050502584116878] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2935 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/pdksh/sort-use.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 package/base/pdksh/sort-use.patch diff --git a/package/base/pdksh/sort-use.patch b/package/base/pdksh/sort-use.patch new file mode 100644 index 000000000..9d46e55b7 --- /dev/null +++ b/package/base/pdksh/sort-use.patch @@ -0,0 +1,18 @@ + +Hm. I find the resulting output a bit unlogic - but it is exactly the same +with the old options and an old sort. So this "chaotic" sort might have +been intended - or always been buggy ... + + - Rene Rebe + +--- pdksh-5.2.14/siglist.sh.orig 1996-09-18 18:52:41.000000000 +0200 ++++ pdksh-5.2.14/siglist.sh 2004-05-05 02:41:53.000000000 +0200 +@@ -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 -n -k 2 | + sed 's/^[0-9]* //' | + awk 'BEGIN { last=0; nsigs=0; } + {