karanabe and GitHub
005cf50a1a
kill: fix GNU compatibility tests for RTMIN and RTMAX ( #11224 )
...
* kill: list Linux realtime signals correctly
Add list-specific signal helpers for RTMIN/RTMAX and unnamed
signal numbers, and use them in kill and env range iteration.
Keep send-oriented signal parsing unchanged for signal delivery.
* document low-byte signal decoding in list mode
2026-03-08 09:25:53 +01:00
Sylvestre Ledru
cae94028af
kill -1 should trigger an error
...
https://github.com/uutils/coreutils/issues/9699
2025-12-18 21:49:09 +01:00
Dorian Peron
6e23d4e979
tests: patch tests to simplify imports
2025-07-01 03:36:46 +02:00
Sylvestre Ledru
a0179ea239
uutests: adjust the tests to use them
2025-03-28 21:40:31 +01:00
Sylvestre Ledru and GitHub
0e7a26178f
Merge pull request #7213 from cakebaker/kill_add_tests
...
kill: test "-l <number>" & adapt error messages
2025-03-07 08:53:35 +01:00
Sylvestre Ledru
18cb7dcf9e
Use the new function fails_with_code
...
Done with
```
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.no_stdout\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2)\n\1.no_stdout();/gs' *rs
$ sed -i -e "s|.fails()(.*).code_is(|.fails_with_code(|g" *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2);/gs' *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)(.*?)[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\3)\2;/gs' *rs
...
```
2025-03-01 17:26:20 +01:00
Daniel Hofstetter and Sylvestre Ledru
cdc8d5f627
kill: test "-l <number>" & adapt error messages
2025-02-14 14:27:12 +01:00
1595b6afaa
kill: use only least significant bits to identify signal with -l ( #7225 )
...
* kill: check the lower 5 bits when the input is a number
* test/kill: added testcase
* kill: check the last 7 bits
* kill: check only the last 8 bits and the signals in the range [128, 159]
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org >
2025-01-28 10:21:19 +01:00
Daniel Hofstetter
2668c98d9d
kill: don't allow lowercase signal names with '-'
2025-01-24 16:43:50 +01:00
Daniel Hofstetter
af2a26b57f
kill: list signal 0 with -l and -t
2025-01-22 08:20:47 +01:00
Samuel Tardieu
b5fc19e60e
kill: make -s conflict with -l and -t
2025-01-04 15:04:12 +01:00
Samuel Tardieu
c6d3ec688c
kill: add -n hidden option for compatibility with bash
...
GNU coreutils also implements it this way.
2025-01-04 11:33:54 +01:00
n4n5
ab67947321
fix clippy tests
2024-06-30 16:27:08 +02:00
Ben Wiederhake
63699a41d6
kill+tests: remove unused spell-checker:disable
2024-04-30 18:28:20 +02:00
Darius Carrier and GitHub
5ee9c69f59
kill: adding support for handling SIGEXIT ( #6269 )
...
kill: convert SIGEXT (0) to None so nix takes correct action
2024-04-27 17:33:45 +02:00
binlingyu
9d1d4cc5f6
Fix warning when executing Clippy
2024-04-17 11:14:03 +08:00
Haisham and Ben Wiederhake
b617876372
kill: ignore signal case on -s
2024-04-15 03:27:51 +02:00
Haisham and Ben Wiederhake
524be6e4ae
kill: accept all casings for signal names in --list
2024-04-15 03:27:51 +02:00
333e4d9fe9
kill: print --table as vertical ( #6216 )
...
* kill: print --table as vertical
* kill: remove signal padding on --table
* kill: skip exit signal in --table
* kill: replace "skip" with "filter"
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com >
2024-04-14 15:08:51 +02:00
9b4a787be7
kill: return 1 and gnu style stderr in case of no pid ( #6225 )
...
* kill: return 1 and gnu style stderr in case of no pid
closes #6221
* Update src/uu/kill/src/kill.rs
Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de >
---------
Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de >
2024-04-14 14:13:15 +02:00
Daniel Hofstetter and Ben Wiederhake
aaaf4c3f91
kill: don't show EXIT with --list
2024-04-14 13:42:55 +02:00
Haisham and Ben Wiederhake
d56c7bbaee
kill: add test for vertical --list
2024-04-12 06:21:48 +02:00
Haisham and Ben Wiederhake
c4c81291b7
kill: add tests to check multiple output
2024-04-12 06:21:48 +02:00
Sylvestre Ledru
bfca6bf70f
Add license headers on all files
2023-08-21 10:49:27 +02:00
Daniel Hofstetter
6988eb7ec6
tests: expand wildcard imports
2023-03-20 15:32:35 +01:00