Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kill: add support for undocumented argument -n SIGNUM #7067

Closed
jfinkels opened this issue Jan 3, 2025 · 0 comments · Fixed by #7069
Closed

kill: add support for undocumented argument -n SIGNUM #7067

jfinkels opened this issue Jan 3, 2025 · 0 comments · Fixed by #7069
Labels

Comments

@jfinkels
Copy link
Collaborator

jfinkels commented Jan 3, 2025

Environment: Ubuntu 20.04, uutils main branch (git commit 88cdf16), GNU coreutils v9.5.227-28b1

Steps to reproduce:

env kill -n0 $$

$$ in bash is the PID of the current shell, according to https://www.gnu.org/software/bash/manual/html_node/Special-Parameters.html.

What I expected to happen: GNU coreutils kill sends the signal 0 to the process and terminates successfully. The -n argument is undocumented, but allowed for compatibility with the bash built-in command kill.

What happens now: uutils kill complains that the -n argument is unexpected:

error: unexpected argument '-n' found

  tip: to pass '-n' as a value, use '-- -n'

Usage: ./target/debug/kill [OPTIONS]... PID...

For more information, try '--help'.

Notes: this is causing a failure in the GNU test file tests/misc/kill.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant