On 12/04/2025 15:03, Christian Franke wrote:
Found during testing of:
https://sourceware.org/pipermail/cygwin-patches/2025q2/013651.html

Examples using nonexistent PIDs:

$ /bin/kill -9 -8 # OK, same as /bin/kill -9 -- -8
kill: -8: No such process

$ /bin/kill -SIGKILL -11 # bogus message
kill: illegal pid: -SIGKILL
kill: -11: No such process

$ /bin/kill -9 -11 # BAD, same as /bin/kill -9 -- -9 -11
kill: -9: No such process
kill: -11: No such process

The above works as expected with the bash builtin and with /usr/bin/kill from Debian 12.

Seems like this needs a documentation change in our kill manpage as well, to say something like:

negative values are interpreted as per kill(3)
-f only accepts a process ID

Reply via email to