Subject: Re: Killing processes by name (svr4 lameness)
To: None <jconklin@netcom.com>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: current-users
Date: 04/11/1996 18:39:08
>>>>> "JTC" == J T Conklin <jconklin@netcom.com> writes:
>>>>> "MRG" == <mrg@eterna.com.au> writes:
MRG> [ warning: following data may cause violent vomitting ]
MRG>
MRG> oh, and /bin/kill on solaris:
MRG>
MRG> svr4islame ~# cat /bin/kill
MRG> /bin/sh -c "kill $*"
JTC> This is not surprising to me, as kill is a perfectly good shell
JTC> builtin. Very rarely will /bin/kill be executed itself. POSIX.2
JTC> actually recommends using a shell script similar to the above for
JTC> a handful of utilities that are both builtins and must live as
JTC> "real" programs.
However, that script seems excessively inefficient to me. It gets
passed to /bin/sh to interpret, which then runs as a subprocess
/bin/sh -c "kill $*"
I suppose we should file a bug with sun suggesting this instead:
#!/bin/sh
kill "$@"
==John