freebsd-dev/bin/sh
Jilles Tjoelker 0a62a9caa9 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
2010-12-21 22:47:34 +00:00
..
bltin sh: Add kill builtin. 2010-12-21 22:47:34 +00:00
funcs
alias.c sh: Add a function to print warnings (with command name and newline). 2010-12-21 20:47:06 +00:00
alias.h
arith_lex.l sh: arith: Disallow decimal constants starting with 0 (containing 8 or 9). 2010-12-18 23:03:51 +00:00
arith.h
arith.y
builtins.def sh: Add kill builtin. 2010-12-21 22:47:34 +00:00
cd.c sh: Add a function to print warnings (with command name and newline). 2010-12-21 20:47:06 +00:00
cd.h
error.c sh: Add a function to print warnings (with command name and newline). 2010-12-21 20:47:06 +00:00
error.h sh: Add a function to print warnings (with command name and newline). 2010-12-21 20:47:06 +00:00
eval.c
eval.h
exec.c
exec.h
expand.c Remove dead code. 2010-12-18 22:16:15 +00:00
expand.h
histedit.c
init.h
input.c
input.h
jobs.c sh: Add kill builtin. 2010-12-21 22:47:34 +00:00
jobs.h
mail.c
mail.h
main.c
main.h
Makefile sh: Add kill builtin. 2010-12-21 22:47:34 +00:00
memalloc.c sh: Remove the herefd hack. 2010-12-12 00:07:27 +00:00
memalloc.h sh: Remove the herefd hack. 2010-12-12 00:07:27 +00:00
miscbltin.c
mkbuiltins
mkinit.c
mknodes.c
mksyntax.c
mktokens
myhistedit.h
mystring.c
mystring.h
nodes.c.pat
nodetypes
options.c
options.h
output.c sh: Use vsnprintf() rather than crafting our own in fmtstr(). 2010-12-11 17:47:27 +00:00
output.h
parser.c Remove duplicate check, turning dead code into live code. 2010-12-13 10:48:49 +00:00
parser.h
redir.c
redir.h
sh.1 sh: Add kill builtin. 2010-12-21 22:47:34 +00:00
shell.h
show.c
show.h
TOUR
trap.c sh: Add a function to print warnings (with command name and newline). 2010-12-21 20:47:06 +00:00
trap.h
var.c
var.h