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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"