Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kill: list signals for bad sig name (#513)
* version1: bash: "builtin kill -h" --> "invalid signal specification" error * version2: GNU: "/usr/bin/kill -h" --> prints usage string * version3: pdksh: "builtin kill -h" --> "unknown option" error * version4: OpenBSD: "/bin/kill -h" --> "unknown signal" error, then print signal list * To me, version4 is the most helpful because it saves the user having to type "kill -l" to see the list * test1: "perl kill" --> no pid given; print usage * test2: "perl kill -h" --> print error, show signal list, exit(1) * test3: "perl kill -l" --> show signal list, exit(0) * test4: "perl kill 1" --> fails as expected because my user doesn't have permission to kill init process
- Loading branch information
Showing
1 changed file
with
28 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters