dot

packages and services management
Log | Files | Refs | README

commit 402ba5ce744ab3015ea3e0b0f085836b473c4b8d
parent 33191def15ad238fd504575134783e7f7c7cd0f1
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 19 Mar 2018 10:45:13 +0100

fix pstree with non gawk

Diffstat:
Mbin/pstree | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/pstree b/bin/pstree @@ -58,7 +58,7 @@ function list(entries) ppid = $1; pid = $5; entries[ppid"cpid"] = entries[ppid"cpid"] "," pid; sub(" *[^ ]+", ""); - sub("( *[^ ]+ +){5}", "&\t"); + sub(" *[^ ]+ + *[^ ]+ + *[^ ]+ + *[^ ]+ + *[^ ]+ +", "&\t"); split($0, info, "\t"); entries[pid"info"] = info[1]; entries[pid"comm"] = info[2];