xref: /original-bsd/bin/sh/funcs/kill (revision 065e4d72)
1# Copyright (c) 1991, 1993
2#	The Regents of the University of California.  All rights reserved.
3#
4# This code is derived from software contributed to Berkeley by
5# Kenneth Almquist.
6#
7# %sccs.include.redist.sh%
8#
9#	@(#)kill	8.2 (Berkeley) 05/04/95
10
11# Convert job names to process ids and then run /bin/kill.
12
13kill() {
14	local args x
15	args=
16	for x in "$@"
17	do	case $x in
18		%*)	x=`jobid "$x"` ;;
19		esac
20		args="$args $x"
21	done
22	/bin/kill $args
23}
24