Date: Tue, 13 Oct 2015 16:42:35 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 203744] pgrep: -d outputs delimiter as terminator Message-ID: <bug-203744-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: chneukirchen@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203744-8>