Skip Menu |

This queue is for tickets about the Proc-ProcessTable CPAN distribution.

Report information
The Basics
Id: 111038
Status: resolved
Priority: 0/
Queue: Proc-ProcessTable

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.53
Fixed in: (no value)



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 . ">">
On 2016-01-09 05:57:13, SREZIC wrote: Show quoted text
> 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 . ">">
See pull request: https://github.com/jwbargsten/perl-proc-processtable/pull/14
On 2016-01-09 06:15:08, SREZIC wrote: Show quoted text
> On 2016-01-09 05:57:13, SREZIC wrote:
> > 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 . ">">
> > See pull request: https://github.com/jwbargsten/perl-proc- > processtable/pull/14
And another pull request for OpenBSD & BSDi, however completely untested (maybe it would be a good idea to let the change check on a OpenBSD smoker; BSDi probably does not exist nowadays anymore): https://github.com/jwbargsten/perl-proc-processtable/pull/15
Merged pull request, thanks! I'll publish it in a dev version and wait for the OpenBSD results