From: Christian Goeschel Ndjomouo Date: Thu, 25 Dec 2025 05:51:31 +0000 (-0500) Subject: newgrp: provide --command info in output message X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ece18c43e13a18a772d7e67dc2609db9149f95bb;p=thirdparty%2Futil-linux.git newgrp: provide --command info in output message Signed-off-by: Christian Goeschel Ndjomouo --- diff --git a/login-utils/newgrp.c b/login-utils/newgrp.c index ba3777b36..2bb4b5581 100644 --- a/login-utils/newgrp.c +++ b/login-utils/newgrp.c @@ -178,7 +178,10 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_("Log in to a new group; optionally executing a shell command.\n"), out); fputs(USAGE_OPTIONS, out); - fprintf(out, USAGE_HELP_OPTIONS(16)); + fputs(_(" -c, --command pass a command to the user's shell with -c\n"), out); + + fputs(USAGE_SEPARATOR, out); + fprintf(out, USAGE_HELP_OPTIONS(26)); fprintf(out, USAGE_MAN_TAIL("newgrp(1)")); exit(EXIT_SUCCESS); }