kill: use only least significant bits to identify signal with -l (#7225)

* kill: check the lower 5 bits when the input is a number

* test/kill: added testcase

* kill: check the last 7 bits

* kill: check only the last 8 bits and the signals in the range [128, 159]

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
This commit is contained in:
Tommaso Fellegara 2025-01-28 10:21:19 +01:00 committed by GitHub
parent 5e81358c4a
commit 1595b6afaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 50 additions and 2 deletions

View file

@ -27,7 +27,6 @@ This file documents why some tests are failing:
* gnu/tests/ls/stat-free-symlinks.sh
* gnu/tests/misc/close-stdout.sh
* gnu/tests/misc/comm.pl
* gnu/tests/misc/kill.sh - https://github.com/uutils/coreutils/issues/7218
* gnu/tests/misc/nohup.sh
* gnu/tests/misc/numfmt.pl - https://github.com/uutils/coreutils/issues/7219 / https://github.com/uutils/coreutils/issues/7221
* gnu/tests/misc/stdbuf.sh - https://github.com/uutils/coreutils/issues/7072