[Bug 203744] pgrep: -d outputs delimiter as terminator
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Oct 13 16:42:35 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203744
Bug ID: 203744
Summary: pgrep: -d outputs delimiter as terminator
Product: Base System
Version: 10.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: chneukirchen at gmail.com
Created attachment 161986
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=161986&action=edit
Patch ported from OpenBSD
The -d flag of pgrep is supposed to "Specify a delimiter to be printed between
each process ID."
Instead, the delimiter is also outputted after the final PID, where a newline
should be printed instead:
% pgrep -d, tty
932,931,930,929,928,927,926,925,% _
Contrast with Linux procps-ng 3.3.11, Solaris 5.11 or OpenBSD 5.7:
% pgrep -d, tty
3191,902
% _
Fixed in OpenBSD pkill.c,v 1.8 from 2005/02/11, ported patch against HEAD
attached.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list