On Sat, Apr 16, 2005 at 04:35:39PM -0600, Eric Blake wrote:
> On cygwin, where /bin/sh is ash, "trap '' CHLD" doesn't work (ash only
> accepts signal numbers, not names):
>
> $ trap '' CHLD
> trap: bad signal CHLD
>
> But CHLD is not one of the portable signal numbers (it is 20 on cygwin,
> but other numbers on other platforms). Not all versions of kill(1) can
> convert names to numbers, but this is coreutils.
The names should be used instead of numbers. That is, the existing
usage seems to be the right thing to do; it's what POSIX mangates
nowadays. See
http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html.
Regards,
James.