diff options
author | jilles <jilles@FreeBSD.org> | 2010-12-21 22:47:34 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-12-21 22:47:34 +0000 |
commit | ae2aabc34981e0a4fc74b41bde3cfd6ff4166022 (patch) | |
tree | 571f5b4935a3ac4f69aff2b5cfb327687b1f59fe /bin/sh/sh.1 | |
parent | 0a77d10ec99ee3d8cfd396b81e6fb1d1a9c4e1de (diff) | |
download | FreeBSD-src-ae2aabc34981e0a4fc74b41bde3cfd6ff4166022.zip FreeBSD-src-ae2aabc34981e0a4fc74b41bde3cfd6ff4166022.tar.gz |
sh: Add kill builtin.
This allows specifying a %job (which is equivalent to the corresponding
process group).
Additionally, it improves reliability of kill from sh in high-load
situations and ensures "kill" finds the correct utility regardless of PATH,
as required by POSIX (unless the undocumented %builtin mechanism is used).
Side effect: fatal errors (any error other than kill(2) failure) now return
exit status 2 instead of 1. (This is consistent with other sh builtins, but
not in NetBSD.)
Code size increases about 1K on i386.
Obtained from: NetBSD
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r-- | bin/sh/sh.1 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index a6fd7be..8f92bbb 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -32,7 +32,7 @@ .\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95 .\" $FreeBSD$ .\" -.Dd December 3, 2010 +.Dd December 21, 2010 .Dt SH 1 .Os .Sh NAME @@ -2049,6 +2049,10 @@ If the .Fl s option is specified, only the PIDs of the job commands are printed, one per line. +.It Ic kill +A built-in equivalent of +.Xr kill 1 +that additionally supports sending signals to jobs. .It Ic local Oo Ar variable ... Oc Op Fl See the .Sx Functions @@ -2477,6 +2481,7 @@ will return the argument. .Xr echo 1 , .Xr ed 1 , .Xr emacs 1 , +.Xr kill 1 , .Xr printf 1 , .Xr pwd 1 , .Xr test 1 , |