mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
kill: don't show EXIT with --list
This commit is contained in:
parent
d56c7bbaee
commit
aaaf4c3f91
2 changed files with 4 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue