mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
kill: don't show EXIT with --list
This commit is contained in:
committed by
Ben Wiederhake
parent
d56c7bbaee
commit
aaaf4c3f91
@@ -162,7 +162,8 @@ fn print_signal(signal_name_or_value: &str) -> UResult<()> {
|
||||
}
|
||||
|
||||
fn print_signals() {
|
||||
for signal in ALL_SIGNALS.iter() {
|
||||
// GNU kill doesn't list the EXIT signal with --list, so we ignore it, too
|
||||
for signal in ALL_SIGNALS.iter().filter(|x| **x != "EXIT") {
|
||||
println!("{signal}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,8 @@ fn test_kill_list_all_signals() {
|
||||
.succeeds()
|
||||
.stdout_contains("KILL")
|
||||
.stdout_contains("TERM")
|
||||
.stdout_contains("HUP");
|
||||
.stdout_contains("HUP")
|
||||
.stdout_does_not_contain("EXIT");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user