killall: Can't combine short options.
killall -we foo
has the -w
and -e
options specified and works as
expected. killall -ve foo
fails, displaying the (long) usage message. I
think this is because it uses getopt_long_only() to allow long options with
only a single minus sign and thus -v
is ambiguous because it could be
--verbose
or --version
. The problem doesn't occur with -w
because
there's only one long option starting with --w
. Please change to
getopt_long(3), like pstree.c, etc., use.
(Whilst here, killall.c has some 15
that should probably use
COMM_LEN
instead.)
Edited by Ralph Corderoy