From c92da2adc5d8bb4282ca210e4a20a552daa00c42 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Tue, 1 Nov 2022 00:46:18 +0000 Subject: [PATCH] pkill: Don't show --echo twice Commit c8384e682c1c ("pgrep: add pwait") changed from the old i_am_pkill logic, but mistakenly missed a break in the pkill case. This results in showing -e/--echo twice when running `pkill -h'. Signed-off-by: Chris Down --- src/pgrep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pgrep.c b/src/pgrep.c index 1c15981c..eeebf3e8 100644 --- a/src/pgrep.c +++ b/src/pgrep.c @@ -160,6 +160,7 @@ static int __attribute__ ((__noreturn__)) usage(int opt) fputs(_(" -, --signal signal to send (either number or name)\n"), fp); fputs(_(" -q, --queue integer value to be sent with the signal\n"), fp); fputs(_(" -e, --echo display what is killed\n"), fp); + break; #ifdef ENABLE_PIDWAIT case PIDWAIT: fputs(_(" -e, --echo display PIDs before waiting\n"), fp);