[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: db3 configure dies at kill?



Niels Möller writes:
 > Is there any good reason why a /bin/kill that looks like
 > 
 >   #! /bin/sh
 >   exec kill "$@"
               ^^^^
 > 
 > isn't good enough? If it has to be written in C for whatever reason, I
 > guess GNU sh-utils is the right place.

How about using this construct to access the arguments, as it is
more portable,

    exec kill ${@+"$@"}

since Korn shells (pdksh & ksh93) will give a "parameter not
found" error for "$@" when the argument count ($#) is equal to
zero.

-- 
Jeff Sheinberg  <jeffsh@erols.com>



Reply to: