Subject: | Trailing space in cmndline (freebsd-kvm and other implementations) |
cmndline on freebsd has always an unnecessary trailing space:
$ perl5.22.1 -MProc::ProcessTable -E 'say "<" . (grep { $_->pid == $$ } @{Proc::ProcessTable->new->table})[0]->cmndline . ">"'
<perl5.22.1 -MProc::ProcessTable -E say "<" . (grep { $_->pid == $$ } @{Proc::ProcessTable->new->table})[0]->cmndline . ">" >
Same on linux:
$ perl5.22.1 -MProc::ProcessTable -E 'say "<" . (grep { $_->pid == $$ } @{Proc::ProcessTable->new->table})[0]->cmndline . ">"'
<perl5.22.1 -MProc::ProcessTable -E say "<" . (grep { $_->pid == $$ } @{Proc::ProcessTable->new->table})[0]->cmndline . ">">