Eliminate header line(s) from ps(1) output instead of skipping over them.

This commit is contained in:
Yaroslav Tykhiy 2006-08-18 13:07:38 +00:00
parent a9a6b38f96
commit 7293852835

View File

@ -280,12 +280,9 @@ _find_processes()
fi
_proccheck="\
$PS 2>/dev/null -o pid,jid,command $_psargs"' |
$PS 2>/dev/null -o pid= -o jid= -o command= $_psargs"' |
while read _npid _jid '"$_fp_args"'; do
case "$_npid" in
PID)
continue;;
esac; '"$_fp_match"'
'"$_fp_match"'
if [ "$JID" -eq "$_jid" ];
then echo -n "$_pref$_npid";
_pref=" ";