ref: 6a379efdfbf901fada19dd6b47fbae56cc513980
parent: ba1c7bab3fb2eb6cffc8cc24ff4e46245e60dd04
author: qwx <qwx@sciops.net>
date: Mon Oct 17 02:17:29 EDT 2022
lstk: fix ps regex
--- a/bin/lstk
+++ b/bin/lstk
@@ -12,7 +12,7 @@
shift
}
psd $p
-p=`{ps | awk -v 'P='^$p '$6 == P{ p=$2 } END{ print p }'}
+p=`{ps | awk -v 'P='^$p '$7 == P || $2 == P{ p=$2 } END{ print p }'}
if(~ $#p 0){
echo no proc $p >[1=2]
exit noproctohand