8000 kill: signal names only understood in uppercase, should accept all casings · Issue #6217 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kill: signal names only understood in uppercase, should accept all casings #6217

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

Closed
BenWiederhake opened this issue Apr 12, 2024 · 3 comments · Fixed by #6229
Closed

kill: signal names only understood in uppercase, should accept all casings #6217

BenWiederhake opened this issue Apr 12, 2024 · 3 comments · Fixed by #6229
Labels

Comments

@BenWiederhake
Copy link
Collaborator
BenWiederhake commented Apr 12, 2024

(Originally documented in #6202)

$ cargo run --features kill kill -l sIgUsR2
kill: unknown signal name 'sIgUsR2'
[$? = 1]
$ kill -l sIgUsR2 # bash built-in
12
$ /usr/bin/kill -l sIgUsR2 # Debian procps-ng 4.0.4
12

TODO: I assume GNU 9.5 kill also behaves like that, but I can't check right now

@cakebaker
Copy link
Contributor

Yes, GNU kill behaves in the same way.

@m-haisham
Copy link
Contributor
m-haisham commented Apr 14, 2024

Does the old form also accept non uppercase signal names? I assume not

@BenWiederhake
Copy link
Collaborator Author

If by "old form" you mean just the signal name without the "SIG" prefix, then yes, it does accept it:

$ sleep 999 &
[1] 2037120
$ kill -s uSr1 2037120  # bash builtin
[1]+  Benutzerdefiniertes Signal 1    sleep 999
$ sleep 999 &
[1] 2037165
$ /usr/bin/kill -s uSr1 2037165  # Debian procps-ng
[1]+  Benutzerdefiniertes Signal 1    sleep 999
$ sleep 999 &
[1] 2037174
$ ../gnu/src/kill -s uSr1 2037174  # GNU 9.5
[1]+  Benutzerdefiniertes Signal 1    sleep 999
$

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.

3 participants
0