Created attachment 161986 [details] 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.
Fixed in base r322210.
MFC'd to stable/11 in base r330324 by eadler Assign to committer that resolved