xref: /original-bsd/bin/sh/funcs/kill (revision abfc216a)
1# Copyright (c) 1991 The Regents of the University of California.
2# 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	5.1 (Berkeley) 03/07/91
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