date and time created 91/03/07 20:21:30 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 8 Mar 1991 12:21:30 +0000 (04:21 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 8 Mar 1991 12:21:30 +0000 (04:21 -0800)
SCCS-vsn: bin/sh/funcs/kill 5.1

usr/src/bin/sh/funcs/kill [new file with mode: 0644]

diff --git a/usr/src/bin/sh/funcs/kill b/usr/src/bin/sh/funcs/kill
new file mode 100644 (file)
index 0000000..b649749
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright (c) 1991 The Regents of the University of California.
+# All rights reserved.
+#
+# This code is derived from software contributed to Berkeley by
+# Kenneth Almquist.
+#
+# %sccs.include.redist.sh%
+#
+#      @(#)kill        5.1 (Berkeley) %G%
+
+# Convert job names to process ids and then run /bin/kill.
+
+kill() {
+       local args x
+       args=
+       for x in "$@"
+       do      case $x in
+               %*)     x=`jobid "$x"` ;;
+               esac
+               args="$args $x"
+       done
+       /bin/kill $args
+}