Skip to content

kill: fails to use only least significant bits to identify signal with -l #7218

@jfinkels

Description

@jfinkels

Environment: Ubuntu 24.04, uutils main branch (git commit 2430e2a), GNU coreutils v9.6.8-fbfd88-dirty

Steps to reproduce:

# 143 is 15 + 128, and signal number 15 is SIGTERM.
kill -l 143

What happens now: uutils kill displays an error message that the signal 143 is unknown:

kill: unknown signal name '143'

What I expected to happen: GNU kill lists the name of the signal TERM:

TERM

Notes: This is causing a failure in the GNU test file tests/misc/kill.sh. It seems that only some number of the least significant bits are used to identify the signal.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions