From 8e8b325625cc7caa24e3b2a8492202f0594fcd80 Mon Sep 17 00:00:00 2001 From: lstewart Date: Thu, 24 Aug 2017 08:20:23 +0000 Subject: [PATCH] Only emit the trailing new line added in r322613 when not operating in quiet mode. Reported by: pho MFC after: 1 week X-MFC-with: r322210 --- bin/pkill/pkill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pkill/pkill.c b/bin/pkill/pkill.c index 380dc29e1f04..8a307a6022ea 100644 --- a/bin/pkill/pkill.c +++ b/bin/pkill/pkill.c @@ -568,7 +568,7 @@ main(int argc, char **argv) continue; rv |= (*action)(kp); } - if (rv && pgrep) + if (rv && pgrep && !quiet) putchar('\n'); if (!did_action && !pgrep && longfmt) fprintf(stderr,