We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d56c7bb commit aaaf4c3Copy full SHA for aaaf4c3
src/uu/kill/src/kill.rs
@@ -162,7 +162,8 @@ fn print_signal(signal_name_or_value: &str) -> UResult<()> {
162
}
163
164
fn print_signals() {
165
- for signal in ALL_SIGNALS.iter() {
+ // GNU kill doesn't list the EXIT signal with --list, so we ignore it, too
166
+ for signal in ALL_SIGNALS.iter().filter(|x| **x != "EXIT") {
167
println!("{signal}");
168
169
tests/by-util/test_kill.rs
@@ -62,7 +62,8 @@ fn test_kill_list_all_signals() {
62
.succeeds()
63
.stdout_contains("KILL")
64
.stdout_contains("TERM")
65
- .stdout_contains("HUP");
+ .stdout_contains("HUP")
66
+ .stdout_does_not_contain("EXIT");
67
68
69
#[test]
0 commit comments